Table 2-2 Instruction Set (cont)
(2) Arithmetic Operation Instructions
Addressing Mode and Instruction Length (bytes)
Condition Code
No. of States
Ad-
Mnemonic
Size #xx Rn @ERn @(d,ERn) @ERn+/@–ERn @aa @(d,PC) @@aa —
Operation
I
H
N
Z V
C
Normal vanced
CMP
CMP.B #xx:8,Rd
B
2
Rd8–#xx:8
—
↕
↕
↕
↕
↕
2
2
CMP.B Rs,Rd
B
2
Rd8–Rs8
—
↕
↕
↕
↕
↕
2
2
CMP.W #xx:16,Rd
W
4
Rd16–#xx:16
—
1
↕
↕
↕
↕
4
4
CMP.W Rs,Rd
W
2
Rd16–Rs16
—
1
↕
↕
↕
↕
2
2
CMP.L #xx:32,ERd
L
6
ERd32–#xx:32
—
2
↕
↕
↕
↕
4
6
CMP.L ERs,ERd
L
2
ERd32–ERs32
—
2
↕
↕
↕
↕
2
2
MULXU
MULXU.B Rs,Rd
B
2
Rd8
×
Rs8
→
Rd16 — — — — — —
14
14
(unsigned operation)
MULXU.W Rs,ERd
W
2
Rd16
×
Rs16
→
ERd32
— — — — — —
22
22
(unsigned operation)
MULXS
MULXS.B Rs,Rd
B
4
Rd8
×
Rs8
→
Rd16 — —
↕
↕
— —
16
16
(signed operation)
MULXS.W Rs,ERd
W
4
Rd16
×
Rs16
→
ERd32 — —
↕
↕
— —
24
24
(signed operation)
DIVXU
DIVXU.B Rs,Rd
B
2
Rd16 ÷ Rs8
→
Rd16 (RdH: remainder, — —
6 7
— —
14
14
RdL: quotient) (unsigned operation)
DIVXU.W Rs,ERd
W
2
ERd32 ÷ Rs16
→
ERd32 (Ed: remainder, — —
6 7
— —
22
22
Rd: quotient) (unsigned operation)
DIVXS
DIVXS.B Rs,Rd
B
4
Rd16 ÷ Rs8
→
Rd16 (RdH: remainder, — —
8 7
— —
16
16
RdL: quotient) (signed operation)
DIVXS.W Rs,ERd
W
4
ERd32 ÷ Rs16
→
ERd32 (Ed: remainder, — —
8 7
— —
24
24
Rd: quotient) (signed operation)
EXTU
EXTU.W Rd
W
2
0
→
(<bits 15 to 8> of Rd16)
— — 0
↕
0
—
2
2
EXTU.L ERd
L
2
0
→
(<bits 31 to 16> of ERd32)
— — 0
↕
0
—
2
2
EXTS
EXTS.W Rd
W
2
(<bit 7> of Rd16)
→
(<bits 15 to
— —
↕
↕
0
—
2
2
8> of Rd16)
EXTS.L ERd
L
2
(<bit 15> of ERd32)
→
(<bits 31 to 16> — —
↕
↕
0
—
2
2
of ERd32)
192