3.5.3 Arithmetic Instructions
Table 3-11 describes the 17 arithmetic instructions.
Table 3-11 Arithmetic Instructions
Instruction
Arithmetic
operations
Size
Function
Rd ± (EAs)
→
Rd, (EAd) ± #IMM
→
(EAd)
Performs addition or subtraction on data in a general
register and data in another general register or memory, or
on immediate data and data in a general register or memory.
ADD
ADD:G
ADD:Q
SUB
ADDS
SUBS
ADDX
SUBX
B/W
B/W
B/W
B/W
B/W
B/W
B/W
Rd ± (EAs) ± C
→
Rd
Performs addition or subtraction with carry or borrow on
data in a general register and data in another general
register or memory, or on immediate data and data in a
general register or memory.
(Rd)
10
± (Rs)
10
± C
→
(Rd)
10
Performs decimal addition or subtraction on data in two
general registers.
Rd
×
(EAs)
→
Rd
Performs 8-bit
×
8-bit or 16-bit
×
16-bit unsigned
multiplication on data in a general register and data in
another general register or memory, or on data in a
general register and immediate data.
Rd ÷ (EAs)
→
Rd
Performs 16-bit ÷ 8-bit or 32-bit ÷ 16-bit unsigned division
on data in a general register and data in another general
register or memory, or on data in a general register and
immediate data.
Rn – (EAs), (EAd) – #IMM
Compares data in a general register with data in another
general register or memory, or with immediate data, or
compares immediate data with data in memory.
DADD
DSUB
B
B
MULXU
B/W
DIVXU
B/W
CMP
CMP:G
CMP:E
CMP:I
B/W
B
W
Note:
B—byte; W—word
53