Instruction Set Summary
1595
SPRUH22I – April 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
Cortex-M3 Processor
24.10 Instruction Set Summary
The processor implements a version of the Thumb instruction set.
lists the supported
instructions.
Notes:
•
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 in the
Cortex-M3
Instruction Set Technical User's Manual
.
Table 24-21. Cortex-M3 Instruction Summary
Mnemonic
Operands
Brief Description
Flags
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
Rn , Op2
Compare negative
N,Z,C,V
CMP
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
ISB
-
Instruction synchronization
barrier
-
IT
-
If‑Then condition block
-
LDM
Rn{!} , reglist
Load multiple registers,
increment after
-
LDMDB, LDMEA
Rn{!} , reglist
Load multiple registers,
decrement before
-
LDMFD, LDMIA
Rn{!} , reglist
Load multiple registers,
increment after
-