Table 10, Bit arithmetic and logic, Table 10 li – Zilog Z08470 User Manual
Page 60

Z80 CPU Instructions
UM008007-0715
48
Z80 CPU
User Manual
instructions begin on page 142.
The result of the operation is placed in the Accumulator with the exception of the compare
(CP) instruction, which leaves the Accumulator unchanged. All of these operations effect
the Flag Register as a result of a specified operation.
Table 10. 8-Bit Arithmetic and Logic
Source
Register Addressing
Register
Indirect
Indexed
Immediate
Destination
A
B
C
D
E
F
L
(HL)
(IX+d)
(lY+d)
n
ADD
87
80
81
82
83
84
85
88
DD
86
d
FD
86
d
C6
n
Add with Carry
ADC
8F
88
89
8A
8B
8C
8D
8E
DD
8E
d
FD
8E
d
CE
n
Subtract
SUB
97
90
91
92
93
94
95
96
DD
96
d
FD
96
d
D6
n
Subtract with Carry
SBC
9F
98
99
9A
9B
9C
9D
9E
DD
9E
d
FD
9E
d
DE
n
AND
A7
A0
A1
A2
A3
A4
A5
A6
DD
A6
d
FD
A6
d
E6
n
XOR
AF
A8
A9
AA
AB
AC
AD
AE
DD
AE
d
FD
AE
d
EE
n
OR
B7
B0
B1
B2
B3
B4
B5
B6
DD
B6
d
FD
B6
d
F6
n
Compare
CP
BF
B8
B9
BA
BB
BC
BD
BE
DD
BE
d
FD
BE
d
FE
n
Increment
INC
3C
04
0C
14
1C
24
2C
34
DD
34
d
FD
34
d
Decrement
DEC
3D
05
0D
15
1D
25
2D
35
DD
35
d
FD
35
d
Note: