Mnemonic
Symbolic
Operation

S
Z F5 H F3 P/V N C Opcode
76-543-210

Hex

Bytes

M's

T's

Comments
ADD A, r A := A + r ~ ~ ~ ~ ~ V 0 ~ 10-000-r 1 1 4
ADD A, p* A := A + p ~ ~ ~ ~ ~ V 0 ~ 11-011-101
10-000-p-
DD 2 2 8
ADD A, q* A := A + q ~ ~ ~ ~ ~ V 0 ~ 11-111-101
10-000-q
FD 2 2 8
ADD A, n A := A + n ~ ~ ~ ~ ~ V 0 ~ 11-000-110
<-----n------>
2 2 8
ADD A, (HL) A := A + (HL) ~ ~ ~ ~ ~ V 0 ~ 10-000-110 1 2 7
ADD A, (IX + d) A := A + (IX + d) ~ ~ ~ ~ ~ V 0 ~ 11-011-101
10-000-110
<-----d------>
DD 3 5 19
ADD A, (IY + d) A := A + (IY + d) ~ ~ ~ ~ ~ V 0 ~ 11-111-101
10-000-110
<-----d------>
FD 3 5 19
ADC A, s A := A + s + CY ~ ~ ~ ~ ~ V 0 ~ -001-
SUB A, s A := A - s ~ ~ ~ ~ ~ V 1 ~ -010-
SBC A, s A := A - s - CY ~ ~ ~ ~ ~ V 1 ~ -011-
AND s A := A AND s ~ ~ ~ 1 ~ P 0 0 -100-
OR s A := A OR s ~ ~ ~ 0 ~ P 0 0 -110-
XOR s A := A XOR s ~ ~ ~ 0 ~ P 0 0 -101-
CP s A - s ~ ~ ~1 ~ ~1 V 1 b -111-
INC r r := r + 1 ~ ~ ~ ~ ~ V 0 . 00-r-100 1 1 4
INC p* p. := p + 1 ~ ~ ~ ~ ~ V 0 . 11-011-101
00-p-100
DD 2 2 8
INC q* q. := q + 1 ~ ~ ~ ~ ~ V 0 . 11-111-101
00-q-100
FD 2 2 8
INC (HL) (HL) := (HL) + 1 ~ ~ ~ ~ ~ V 0 . 00-110-100 1 3 11
INC (IX + d) (IX + d) :=
(IX + d) + 1
~ ~ ~ ~ ~ V 0 . 11-011-101
00-110-100
<-----d------>
DD
3 6 23
INC (IY + d) (IY + d) :=
(IY + d) + 1
~ ~ ~ ~ ~ V 0 . 11-111-101
00-110-100
<-----d------>
FD 3 6 23
DEC m m := m - 1 ~ ~ ~ ~ ~ V 1 . -101-
CPL A := A . . ~1 1 ~1 . 1 . 00-101-111 2F 1 1 4 One's complement.
NEG4 A := 0 - A
__
~ ~ ~ ~ ~ V 1 ~ 11-101-101
01-000-100
ED
44
2 2 8 Two's complement.
DAA Converts A into packed BCD following add or subtract with BCD operands.
__
~ ~ ~ ~ ~ P . ~
00-100-111 27 1 1 4
1