
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:
10 111
r*
11 1 10111
FE
10 1 10111
BE
11 1 01101
DD
10 1 10111
BE
11 1 01111
FD
10 1 10111
BE
CP r*
CP n
CP (HL)
CP (IX+d)
CP (IY+d)
n
d
d
Komentáře k této Příručce