
DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10360_0
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 00.06 — 5 June 2009
633 of 808
NXP Semiconductors
UM10360
Chapter 34: Appendix: Cortex-M3 User Guide
2.4.2.5
Examples
LDR
R8, [R10]
; Loads R8 from the address in R10.
LDRNE
R2, [R5, #960]!
; Loads (conditionally) R2 from a word
; 960 bytes above the address in R5, and
; increments R5 by 960.
STR
R2, [R9,#const-struc]
; const-struc is an expression evaluating
; to a constant in the range 0-4095.
STRH
R3, [R4], #4
; Store R3 as halfword data into address in
; R4, then increment R4 by 4
LDRD
R8, R9, [R3, #0x20]
; Load R8 from a word 32 bytes above the
; address in R3, and load R9 from a word 36
; bytes above the address in R3
STRD
R0, R1, [R8], #-16
; Store R0 to address in R8, and store R1 to
; a word 4 bytes above the address in R8,
; and then decrement R8 by 16.