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
196 of 258
NXP Semiconductors
UM10429
Chapter 19: Appendix LPC1102 ARM Cortex-M0 reference
•
angle brackets, <>, enclose alternative forms of the operand
•
braces, {}, enclose optional operands and mnemonic parts
•
the Operands column is not exhaustive.
For more information on the instructions and operands, see the instruction descriptions.
Table 202. Cortex-M0 instructions
Mnemonic
Operands
Brief description
Flags
Reference
ADCS
{Rd,}
Rn,
Rm
Add with Carry
N,Z,C,V
ADD{S}
{Rd,}
Rn, <Rm|#imm>
Add N,Z,C,V
ADR
Rd, label
PC-relative Address to Register
-
ANDS
{Rd,} Rn, Rm
Bitwise AND
N,Z
ASRS
{Rd,} Rm, <Rs|#imm>
Arithmetic Shift Right
N,Z,C
B{cc}
label
Branch {conditionally}
-
BICS
{Rd,}
Rn, Rm
Bit Clear
N,Z
BKPT
#imm
Breakpoint
-
BL
label
Branch with Link
-
BLX
Rm
Branch indirect with Link
-
BX
Rm
Branch indirect
-
CMN
Rn, Rm
Compare Negative
N,Z,C,V
CMP
Rn, <Rm|#imm>
Compare
N,Z,C,V
CPSID
i
Change Processor State, Disable
Interrupts
-
CPSIE
i
Change Processor State, Enable
Interrupts
-
DMB
-
Data Memory Barrier
-
DSB
-
Data Synchronization Barrier
-
EORS
{Rd,} Rn, Rm
Exclusive OR
N,Z
ISB
-
Instruction Synchronization Barrier
-
LDM
Rn{!}, reglist
Load Multiple registers, increment after
-
LDR
Rt, label
Load Register from PC-relative address -
LDR
Rt, [Rn, <Rm|#imm>]
Load Register with word
-
LDRB
Rt, [Rn, <Rm|#imm>]
Load Register with byte
-
LDRH
Rt, [Rn, <Rm|#imm>]
Load Register with halfword
-
LDRSB
Rt, [Rn, <Rm|#imm>]
Load Register with signed byte
-
LDRSH
Rt, [Rn, <Rm|#imm>]
Load Register with signed halfword
-
LSLS
{Rd,} Rn, <Rs|#imm>
Logical Shift Left
N,Z,C
U
{Rd,} Rn, <Rs|#imm>
Logical Shift Right
N,Z,C
MOV{S}
Rd, Rm
Move
N,Z
MRS
Rd, spec_reg
Move to general register from special
register
-
MSR
spec_reg, Rm
Move to special register from general
register
N,Z,C,V
MULS
Rd, Rn, Rm
Multiply, 32-bit result
N,Z
MVNS
Rd, Rm
Bitwise NOT
N,Z