Sub s – Zilog Z08470 User Manual
Page 163
Advertising

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:
1
0
1
0
0
r*
1
1
1
1
0
1
0
0
D6
n
1
0
1
1
0
1
0
0
96
1
1
1
0
1
1
0
1
DD
1
0
1
1
0
1
0
0
96
d
1
1
1
0
1
1
1
1
FD
1
0
1
1
0
1
0
0
96
d
SUB r
SUB n
SUB (HL)
SUB (IX+d)
SUB (IY+d)
Advertising