
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
653 of 808
NXP Semiconductors
UM10360
Chapter 34: Appendix: Cortex-M3 User Guide
2.5.3.4
Condition flags
If S is specified:
•
these instructions update the N and Z flags according to the result
•
the C flag is updated to the last bit shifted out, except when the shift length is 0, see
Section 34–2.3.4 “Shift Operations”
2.5.3.5
Examples
ASR
R7, R8, #9
; Arithmetic shift right by 9 bits
LSLS
R1, R2, #3
; Logical shift left by 3 bits with flag update
LSR
R4, R5, #6
; Logical shift right by 6 bits
ROR
R4, R5, R6
; Rotate right by the value in the bottom byte of R6
RRX
R4, R5
; Rotate right with extend