MB89630R Series
51
Table 3 Arithmetic Operation Instructions (62 instructions)
(Continued)
Mnemonic
~
#
Operation
TL
TH
AH
N Z V C
OP code
ADDC A,Ri
ADDC A,#d8
ADDC A,dir
ADDC A,@IX +off
ADDC A,@EP
ADDCW A
ADDC A
SUBC A,Ri
SUBC A,#d8
SUBC A,dir
SUBC A,@IX +off
SUBC A,@EP
SUBCW A
SUBC A
INC Ri
INCW EP
INCW IX
INCW A
DEC Ri
DECW EP
DECW IX
DECW A
MULU A
DIVU A
ANDW A
ORW A
XORW A
CMP A
CMPW A
RORC A
ROLC A
CMP A,#d8
CMP A,dir
CMP A,@EP
CMP A,@IX +off
CMP A,Ri
DAA
DAS
XOR A
XOR A,#d8
XOR A,dir
XOR A,@EP
XOR A,@IX +off
XOR A,Ri
AND A
AND A,#d8
AND A,dir
3
2
3
4
3
3
2
3
2
3
4
3
3
2
4
3
3
3
4
3
3
3
19
21
3
3
3
2
3
2
2
2
3
3
4
3
2
2
2
2
3
3
4
3
2
2
3
1
2
2
2
1
1
1
1
2
2
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
2
1
2
1
1
1
1
2
2
1
2
1
1
2
2
(A)
←
(A) + (Ri) + C
(A)
←
(A) + d8 + C
(A)
←
(A) + (dir) + C
(A)
←
(A) + ( (IX) +off) + C
(A)
←
(A) + ( (EP) ) + C
(A)
←
(A) + (T) + C
(AL)
←
(AL) + (TL) + C
(A)
←
(A)
(Ri)
C
(A)
←
(A)
d8
C
(A)
←
(A)
(dir)
C
(A)
←
(A)
( (IX) +off)
C
(A)
←
(A)
( (EP) )
C
(A)
←
(T)
(A)
C
(AL)
←
(TL)
(AL)
C
(Ri)
←
(Ri) + 1
(EP)
←
(EP) + 1
(IX)
←
(IX) + 1
(A)
←
(A) + 1
(Ri)
←
(Ri)
1
(EP)
←
(EP)
1
(IX)
←
(IX)
1
(A)
←
(A)
1
(A)
←
(AL)
×
(TL)
(A)
←
(T) / (AL),MOD
→
(T)
(A)
←
(A)
∧
(T)
(A)
←
(A)
∨
(T)
(A)
←
(A)
(T)
(TL)
(AL)
(T)
(A)
C
→
→
(A)
d8
(A)
(dir)
(A)
( (EP) )
(A)
( (IX) +off)
(A)
(Ri)
Decimal adjust for addition
Decimal adjust for subtraction
(A)
←
(AL)
(TL)
(A)
←
(AL)
d8
(A)
←
(AL)
(dir)
(A)
←
(AL)
( (EP) )
(A)
←
(AL)
( (IX) +off)
(A)
←
(AL)
(Ri)
(A)
←
(AL)
∧
(TL)
(A)
←
(AL)
∧
d8
(A)
←
(AL)
∧
(dir)
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
dL
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
00
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
dH
–
–
–
–
–
–
dH
–
–
–
–
dH
–
–
–
dH
dH
00
dH
dH
dH
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + –
– – – –
– – – –
+ + – –
+ + + –
– – – –
– – – –
+ + – –
– – – –
– – – –
+ + R –
+ + R –
+ + R –
+ + + +
+ + + +
+ + – +
+ + – +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + R –
+ + R –
+ + R –
+ + R –
+ + R –
+ + R –
+ + R –
+ + R –
+ + R –
28 to 2F
24
25
26
27
23
22
38 to 3F
34
35
36
37
33
32
C8 to CF
C3
C2
C0
D8 to DF
D3
D2
D0
01
11
63
73
53
12
13
03
02
14
15
17
16
18 to 1F
84
94
52
54
55
57
56
58 to 5F
62
64
65
A
←
C
←
A