2.6.4.4.1 Syntax
op{type}T{cond} Rt, [Rn {, #offset}] ; immediate
offset
where:
- op is either LDR (load register) or STR (store register)
- type is one of:
- B: unsigned byte, zero extend to 32 bits on loads.
- SB: signed byte, sign extend to 32 bits (LDR only).
- H: unsigned halfword, zero extend to 32 bits on loads.
- SH: signed halfword, sign extend to 32 bits (LDR only).
- -: omit, for word.
- cond is an optional condition code, refer to 2.6.3.7 Conditional Execution.
- Rt is the register to load or store.
- Rn is the register on which the memory address is based.
- offset is an offset from Rn and can be 0 to 255. If offset is omitted, the address is the value in Rn.