Mnemonic |
Symbolic
Operation |
Flags
S Z H P C |
Opcode
76 543 210 |
Hex |
Bytes |
M
Cycles |
Clock
Cycles |
Comments |
ADD
r |
A ¬ A + r |
↕ ↕ ↕ ↕ ↕ |
10 000 r |
|
1 |
1 |
4 |
r Reg
000 B
001 C
010 D
011 E
100 H
101 L
111 A
|
ADI
n |
A ¬ A + n |
↕ ↕ ↕ ↕ ↕ |
11 000 110
¬
n ® |
|
2 |
2 |
7 |
ADD
M |
A ¬ A + (HL) |
↕ ↕ ↕ ↕ ↕ |
10 000 110 |
86 |
1 |
2 |
7 |
ADC
r |
A ¬ A + r + CY |
↕ ↕ ↕ ↕ ↕ |
10 001 r |
|
1 |
1 |
4 |
ACI
n |
A ¬ A + n + CY |
↕ ↕ ↕ ↕ ↕ |
11 001 110
¬
n ® |
|
2 |
2 |
7 |
ADC
M |
A ¬ A + (HL) + CY |
↕ ↕ ↕ ↕ ↕ |
10 001 110 |
8E |
1 |
2 |
7 |
SUB
r |
A ¬ A - r |
↕ ↕ ↕ ↕ ↕ |
10 010 r |
|
1 |
1 |
4 |
SUI
n |
A ¬ A - n |
↕ ↕ ↕ ↕ ↕ |
11 010 110
¬
n ® |
|
2 |
2 |
7 |
SUB
M |
A ¬ A - (HL) |
↕ ↕ ↕ ↕ ↕ |
10 010 110 |
96 |
1 |
2 |
7 |
SBB
r |
A ¬ A - r - CY |
↕ ↕ ↕ ↕ ↕ |
10 011 r |
|
1 |
1 |
4 |
SBI
n |
A ¬ A - n - CY |
↕ ↕ ↕ ↕ ↕ |
11 011 110
¬
n ® |
|
2 |
2 |
7 |
SBB
M |
A ¬ A - (HL) - CY |
↕ ↕ ↕ ↕ ↕ |
10 011 110 |
9E |
1 |
2 |
7 |
CMP r |
A - r |
↕ ↕ ↕ ↕ ↕ |
10 111 r |
|
1 |
1 |
4 |
CPI
n |
A - n |
↕ ↕ ↕ ↕ ↕ |
11 111 110
¬
n ® |
|
2 |
2 |
7 |
CMP
M |
A - (HL) |
↕ ↕ ↕ ↕ ↕ |
10 111 110 |
BE |
1 |
2 |
7 |
ANA
r |
A ¬ A and r |
↕ ↕ • ↕ 0 |
10 100 r |
|
1 |
1 |
4 |
ANI
n |
A ¬ A and n |
↕ ↕ • ↕ 0 |
11 100 110
¬
n ® |
|
2 |
2 |
7 |
ANA
M |
A ¬ A and (HL) |
↕ ↕ • ↕ 0 |
10 100 110 |
A6 |
1 |
2 |
7 |
ORA
r |
A ¬ A or r |
↕ ↕ • ↕ 0 |
10 110 r |
|
1 |
1 |
4 |
ORI
n |
A ¬ A or n |
↕ ↕ • ↕ 0 |
11 110 110
¬
n ® |
|
2 |
2 |
7 |
ORA
M |
A ¬ A or (HL) |
↕ ↕ • ↕ 0 |
10 110 110 |
B6 |
1 |
2 |
7 |
XRA
r |
A ¬ A xor r |
↕ ↕ • ↕ 0 |
10 101 r |
|
1 |
1 |
4 |
XRI
n |
A ¬ A xor n |
↕ ↕ • ↕ 0 |
11 101 110
¬
n ® |
|
2 |
2 |
7 |
XRA M |
A ¬ A xor (HL) |
↕ ↕ • ↕ 0 |
10 101 110 |
A6 |
1 |
2 |
7 |
INR r |
r ¬ r + 1 |
↕ ↕ ↕ ↕ • |
00 r 100 |
|
1 |
1 |
4 |
INR M |
(HL) ¬ (HL) + 1 |
↕ ↕ ↕ ↕ • |
00 110 100 |
34 |
1 |
3 |
11 |
DCR r |
r ¬ r - 1 |
↕ ↕ ↕ ↕ • |
00 r 101 |
|
1 |
1 |
4 |
DCR
M |
(HL) ¬ (HL) - 1 |
↕ ↕ ↕ ↕ • |
00 110 101 |
35 |
1 |
3 |
11 |
DAA | Converts Accumulator contents into packed BCD, following add with packed BCD operands |
↕ ↕ ↕ ↕ ↕ | 00 100 111 |
27 |
1 |
1 |
4 |
CMA |
_
A ¬ A |
• • • • • |
00 101 111 |
2F |
1 |
1 |
4 |
One’s complement. |
Notes: |
r means any of the registers A, B, C, D, E, H, L.
CY means the carry flip-flop. |
Flag Notation: |
• = flag is not affected, 0 = flag is reset, 1 = flag is
set,
↕ = flag is set according to the result of the operation. |
|