UM10429
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2010. All rights reserved.
User manual
Rev. 1 — 20 October 2010
209 of 258
NXP Semiconductors
UM10429
Chapter 19: Appendix LPC1102 ARM Cortex-M0 reference
•
The exception is LR for a PUSH and PC for a POP.
19.4.4.6.4
Condition flags
These instructions do not change the flags.
19.4.4.6.5
Examples
PUSH
{R0,R4-R7}
; Push R0,R4,R5,R6,R7 onto the stack
PUSH
{R2,LR}
; Push R2 and the link-register onto the stack
POP
{R0,R6,PC}
; Pop r0,r6 and PC from the stack, then branch to
; the new PC.
19.4.5 General data processing instructions
shows the data processing instructions:
Table 207. Data processing instructions
Mnemonic
Brief description
See
ADCS
Add with Carry
ADD{S}
Add
ANDS
Logical AND
ASRS
Arithmetic Shift Right
BICS
Bit Clear
CMN
Compare Negative
CMP
Compare
EORS
Exclusive OR
LSLS
Logical Shift Left
LSRS
Logical Shift Right
MOV{S}
Move
MULS
Multiply
MVNS
Move NOT
ORRS
Logical OR
REV
Reverse byte order in a word
REV16
Reverse byte order in each halfword
REVSH
Reverse byte order in bottom halfword
and sign extend
RORS
Rotate Right
RSBS
Reverse Subtract
SBCS
Subtract with Carry
SUBS
Subtract
SXTB
Sign extend a byte
SXTH
Sign extend a halfword
UXTB
Zero extend a byte
UXTH
Zero extend a halfword
TST
Test