Introduction
ARM DDI 0301H
Copyright © 2004-2009 ARM Limited. All rights reserved.
1-44
ID012310
Non-Confidential, Unrestricted Access
1.10.2
Thumb instruction set summary
Table 1-16 summarizes the Thumb instruction set.
LS
Unsigned lower or same
GE
Signed greater or equal
LT
Signed less than
GT
Signed greater than
LE
Signed less than or equal
AL
Always
Table 1-15 Condition codes (continued)
Suffix
Description
Table 1-16 Thumb instruction set summary
Operation
Assembler
Move
Immediate, update flags
MOV <Rd>, #<immed_8>
LowReg to LowReg, update flags
MOV <Rd>, <Rm>
HighReg to LowReg
MOV <Rd>, <Rm>
LowReg to HighReg
MOV <Rd>, <Rm>
HighReg to HighReg
MOV <Rd>, <Rm>
Copy
CPY <Rd>, <Rm>
Arithmetic
Add
ADD <Rd>, <Rn>, #<immed_3>
Add immediate
ADD <Rd>, #<immed_8>
Add LowReg and LowReg, update flags
ADD <Rd>, <Rn>, <Rm>
Add HighReg to LowReg
ADD <Rd>, <Rm>
Add LowReg to HighReg
ADD <Rd>, <Rm>
Add HighReg to HighReg
ADD <Rd>, <Rm>
Add immediate to PC
ADD <Rd>, PC, #<immed_8*4>
Add immediate to SP
ADD <Rd>, SP, #<immed_8*4>
Add immediate to SP
ADD SP, #<immed_7*4>
ADD SP, SP, #<immed_7*4>
Add with carry
ADC <Rd>, <Rs>
Subtract immediate
SUB <Rd>, <Rn>, #<immed_3>
Subtract immediate
SUB <Rd>, #<immed_8>
Subtract
SUB <Rd>, <Rn>, <Rm>
Subtract immediate from SP
SUB SP, #<immed_7*4>
Subtract with carry
SBC <Rd>, <Rm>