Jump to content

ARMv7 ASM progamming easy question!

- - - - -

  • Please log in to reply
2 replies to this topic

#1
phil128

phil128

    Newbie

  • Members
  • Pip
  • 4 posts
Hi. I'm starting to learn ASM programming for the ARMv7 architecture but I'm not too sure what programming guides are available. I'm starting to learn programming for my n900 device under openSuse 11.3, so is there a nice tutorial available for ARM programming using the AT&T syntax? I've googled many guides BUT the problem I'm having is when I find a ARM based ASM tutorial which is like 10 years old and wonder it its useful with the current generation of ARM based cpus.

I may of even answered my own question here, but I seem to think that an ARMv1/v2/v3 etc arch CPU's are no different (in terms of opcodes) than an ARMv7/v8 etc cpu. The only difference is the latter is faster. OR would the newer n900 CPU's have more opcodes which means a guide that's like 5-10 years old is useless.

Thanks

#2
dbug

dbug

    Programmer

  • Members
  • PipPipPipPip
  • 155 posts
As far as I know, the AT&T syntax is a variant of the Intel syntax for x86 processors, but it is not applicable to other assembler languages.

From time to time, newer processors expand the instruction set of older ones (to allow handling more resources like an expanded memory space, including some new operations, ...). However almost all basic opcodes will be the same. I don't know any good tutorial for ARM assembly. I always use a good manual with the description of each instruction and an assembler. The concepts of assembly programming are generally equal to any assembler, you only need to know the list of instructions you can use and the registers necessary to program the available devices (the datasheet of your processor).

Some information about ARM assembly:

A quick reference guide of the ARM instruction set
A more detailed description of each instruction (section 4)

#3
phil128

phil128

    Newbie

  • Members
  • Pip
  • 4 posts
AHHHHHHHHHHHHHHHHHH Excellent! Thanks for your help bud




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users