| |||
Home > Writing ARM Assembly Language > Memory accesses |
The following addressing modes are commonly permitted for memory access instructions:
The offset value is applied to an address obtained from the base register. The result is used as the address for the memory access. The base register is unchanged. The assembly language syntax for this mode is:
[Rn
,offset
]
The offset value is applied to an address obtained from the base register. The result is used as the address for the memory access, and written back into the base register. The assembly language syntax for this mode is:
[Rn
,offset
]!
The address obtained from the base register is used, unchanged, as the address for the memory access. The offset value is applied to the address, and written back into the base register. The assembly language syntax for this mode is:
[Rn
],offset
In each case,
is
the base register and Rn
can
be:offset
an immediate constant
an index register, Rm
a shifted index register, such as
, Rm
LSL
#
shift
.
Assembler Reference: