The Cortex-M4 Instruction Set
ARM DUI 0553A
Copyright © 2010 ARM. All rights reserved.
3-28
ID121610
Non-Confidential
Condition flags
These instructions do not change the flags.
Examples
STR
R0, [R5, R1]
; Store value of R0 into an address equal to
; sum of R5 and R1
LDRSB
R0, [R5, R1, LSL #1] ; Read byte value from an address equal to
; sum of R5 and two times R1, sign extended it
; to a word value and put it in R0
STR
R0, [R1, R2, LSL #2] ; Stores R0 to an address equal to sum of R1
; and four times R2.