UM10462
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 5.5 — 21 December 2016
467 of 523
NXP Semiconductors
UM10462
Chapter 24: LPC11U3x/2x/1x Appendix ARM Cortex-M0
24.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.
24.4.5 General data processing instructions
shows the data processing instructions:
24.4.5.1 ADC, ADD, RSB, SBC, and SUB
Add with carry, Add, Reverse Subtract, Subtract with carry, and Subtract.
24.4.5.1.1
Syntax
ADCS {
Rd
,}
Rn
,
Rm
Table 428. 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