
UM008007-0715 Z80 Instruction Description
Z80 CPU
User Manual
151
SUB s
Operation
A ← A – s
Op Code
SUB
Operand
s
This s operand is any of r, n, (HL), (IX+d), or (lY+d) as defined for the analogous ADD
instruction. These possible op code/operand combinations are assembled as follows in the
object code:
10 100
r*
11 1 10100
D6
n
10 1 10100
96
11 1 01101
DD
10 1 10100
96
d
11 1 01111
FD
10 1 10100
96
d
SUB r
SUB n
SUB (HL)
SUB (IX+d)
SUB (IY+d)
Comentários a estes Manuais