
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
616 of 808
NXP Semiconductors
UM10360
Chapter 34: Appendix: Cortex-M3 User Guide
2.
ARM Cortex-M3 User Guide: Instruction Set
2.1 Instruction set summary
The processor implements a version of the Thumb instruction set.
lists the
supported instructions.
Note
:
•
angle brackets, <>, enclose alternative forms of the operand
•
braces, {}, enclose optional operands
•
the Operands column is not exhaustive
•
Op2
is a flexible second operand that can be either a register or a constant
•
most instructions can use an optional condition code suffix.
For more information on the instructions and operands, see the instruction descriptions.
Table 584. Cortex-M3 instructions
Mnemonic
Operands
Brief description
Flags
Page
ADC, ADCS
{Rd,}
Rn,
Op2
Add with Carry
N,Z,C,V
ADD, ADDS
{Rd,}
Rn, Op2
Add
N,Z,C,V
ADD, ADDW
{Rd,}
Rn, #imm12
Add
N,Z,C,V
ADR
Rd, label
Load PC-relative address
-
AND, ANDS
{Rd,} Rn, Op2
Logical AND
N,Z,C
ASR, ASRS
Rd, Rm, <Rs|#n>
Arithmetic Shift Right
N,Z,C
B
label
Branch
-
BFC
Rd, #lsb, #width
Bit Field Clear
-
BFI
Rd, Rn, #lsb, #width
Bit Field Insert
-
BIC, BICS
{Rd,}
Rn, Op2
Bit Clear
N,Z,C
BKPT
#imm
Breakpoint
-
BL
label
Branch with Link
-
BLX
Rm
Branch indirect with Link
-
BX
Rm
Branch indirect
-
CBNZ
Rn, label
Compare and Branch if Non Zero
-
CBZ
Rn, label
Compare and Branch if Zero
-
CLREX
-
Clear Exclusive
-
CLZ
Rd, Rm
Count leading zeros
-
CMN, CMNS
Rn, Op2
Compare Negative
N,Z,C,V
CMP, CMPS
Rn, Op2
Compare
N,Z,C,V
CPSID
iflags
Change Processor State, Disable Interrupts
-
CPSIE
iflags
Change Processor State, Enable Interrupts
-
DMB
-
Data Memory Barrier
-
DSB
-
Data Synchronization Barrier
-
EOR, EORS
{Rd,} Rn, Op2
Exclusive OR
N,Z,C