85
MB90246A Series
Table 9 Add/Subtract (Byte, Word, Long) [42 Instructions]
Note: For (a) to (d), refer to “Table 4 Number of Execution Cycles in Addressing Modes” and “Table 5 Correction
Values for Number of Cycles for Calculating Actual Number of Cycles.”
Mnemonic
#
~
B
Operation
LH AH
I
S
T
N
Z
V
C RMW
ADD
ADD
ADD
ADD
ADD
ADD
ADDC
ADDC
ADDC
ADDDC A
SUB
SUB
SUB
SUB
SUB
SUB
SUBC
SUBC
SUBC
SUBDC A
A,#imm8
A, dir
A, ear
A, eam
ear, A
eam, A
A
A, ear
A, eam
A, #imm8
A, dir
A, ear
A, eam
ear, A
eam, A
A
A, ear
A, eam
2
2
2
2 +
2
2 +
1
2
2 +
1
2
2
2
2 +
2
2 +
1
2
2 +
1
2
3
2
3 + (a)
2
3 + (a)
2
2
3 + (a)
3
2
3
2
3 + (a)
2
3 + (a)
2
2
3 + (a)
3
0
(b)
0
(b)
0
2
×
(b)
0
0
(b)
0
0
(b)
0
(b)
0
2
×
(b)
0
0
(b)
0
byte (A)
←
(A) +imm8
byte (A)
←
(A) +(dir)
byte (A)
←
(A) +(ear)
byte (A)
←
(A) +(eam)
byte (ear)
←
(ear) + (A)
byte (eam)
←
(eam) + (A)
byte (A)
←
(AH) + (AL) + (C)
byte (A)
←
(A) + (ear) + (C)
byte (A)
←
(A) + (eam) + (C)
byte (A)
←
(AH) + (AL) + (C) (decimal)
byte (A)
←
(A) – imm8
byte (A)
←
(A) – (dir)
byte (A)
←
(A) – (ear)
byte (A)
←
(A) – (eam)
byte (ear)
←
(ear) – (A)
byte (eam)
←
(eam) – (A)
byte (A)
←
(AH) – (AL) – (C)
byte (A)
←
(A) – (ear) – (C)
byte (A)
←
(A) – (eam) – (C)
byte (A)
←
(AH) – (AL) – (C) (decimal)
Z
Z
Z
Z
–
Z
Z
Z
Z
Z
Z
Z
Z
Z
–
–
Z
Z
Z
Z
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
–
–
–
–
*
*
–
–
–
–
–
–
–
–
*
*
–
–
–
–
ADDW
ADDW
ADDW
ADDW
ADDW
ADDW
ADDCW A, ear
ADDCW A, eam
SUBW
SUBW
SUBW
SUBW
SUBW
SUBW
SUBCW A, ear
SUBCW A, eam
A
A, ear
A, eam
A, #imm16
ear, A
eam, A
A
A, ear
A, eam
A, #imm16
ear, A
eam, A
1
2
2 +
3
2
2 +
2
2 +
1
2
2 +
3
2
2 +
2
2 +
2
2
3 + (a)
2
2
3 + (a)
2
3 + (a)
2
2
3 + (a)
2
2
3 + (a)
2
3 + (a)
0
0
(c)
0
0
2
×
(c)
0
(c)
0
0
(c)
0
0
2
×
(c)
0
(c)
word (A)
←
(AH) + (AL)
word (A)
←
(A) + (ear)
word (A)
←
(A) + (eam)
word (A)
←
(A) + imm16
word (ear) – (ear) + (A)
word (eam) – (eam) + (A)
word (A)
←
(A) + (ear) + (C)
word (A)
←
(A) + (eam) + (C)
word (A)
←
(AH) – (AL)
word (A)
←
(A) – (ear)
word (A)
←
(A) – (eam)
word (A)
←
(A) – imm16
word (ear)
←
(ear) – (A)
word (eam)
←
(eam) – (A)
word (A)
←
(A) – (ear) – (C)
word (A)
←
(A) – (eam) – (C)
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
–
–
–
–
*
*
–
–
–
–
–
–
*
*
–
–
ADDL
ADDL
ADDL
SUBL
SUBL
SUBL
A, ear
A, eam
A, #imm32
A, ear
A, eam
A, #imm32
2
2 +
5
2
2 +
5
5
6 + (a)
4
5
6 + (a)
4
0
(d)
0
0
(d)
0
long (A)
←
(A) + (ear)
long (A)
←
(A) + (eam)
long (A)
←
(A) + imm32
long (A)
←
(A) – (ear)
long (A)
←
(A) – (eam)
long (A)
←
(A) – imm32
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
–
–
–
–
–
–