Download Cortex-M3/M4F Instruction Set Technical User`s Manual (Rev. A)
Transcript
Memory Access Instructions
2.4
LDR and STR (Unprivileged Access)
Load and Store with unprivileged access.
Applies to...
2.4.1
M3
M4
M4F
✓
✓
✓
Syntax
op{type}T{cond} Rt, [Rn {, #offset}]
; immediate offset
where:
op
Is one of:
LDR
Load Register.
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. See Table 1-2 on page 33.
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.
42
November 04, 2011
Texas Instruments Incorporated