Cp s – Zilog Z08470 User Manual
Page 173

UM008007-0715
Z80 Instruction Description
Z80 CPU
User Manual
161
CP s
Operation
A – s
Op Code
CP
Operand
s
The s operand is any of r, n, (HL), (IX+d), or (lY+d), as defined for the analogous ADD
instructions. These possible op code/operand combinations are assembled as follows in
the object code:
1
0
1
1
1
r*
1
1
1
1
0
1
1
1
FE
1
0
1
1
0
1
1
1
BE
1
1
1
0
1
1
0
1
DD
1
0
1
1
0
1
1
1
BE
1
1
1
0
1
1
1
1
FD
1
0
1
1
0
1
1
1
BE
CP r*
CP n
CP (HL)
CP (IX+d)
CP (IY+d)
n
d
d