Mnemonic |
Symbolic Operation |
S |
Z | F5 | H | F3 | P/V | N | C | Opcode 76-543-210 |
Hex |
Bytes |
M's |
T's |
Comments |
JP nn | PC := nn | . | . | . | . | . | . | . | . | 11-000-011 <-----n------> <-----n------> |
C3 | 3 | 3 | 10 | |
JP cc, nn | if cc is true, PC := nn |
. | . | . | . | . | . | . | . | 11-ccc-010 <-----n------> <-----n------> |
3 | 3 | 10 | ||
JR e | PC := PC + e | . | . | . | . | . | . | . | . | 00-011-000 <--e - 2--> |
18 | 2 | 3 | 12 | |
JR ss, e | if ss is true PC := PC + e |
. | . | . | . | . | . | . | . | 00-ss-000 <--e - 2--> |
2 2 |
3 2 |
12 7 |
if ss is true if ss is false |
|
JP HL | PC := HL | . | . | . | . | . | . | . | . | 11-101-001 | E9 | 1 | 1 | 4 | |
JP IX | PC := IX | . | . | . | . | . | . | . | . | 11-011-101 11-101-001 |
DD E9 |
2 | 2 | 8 | |
JP IY | PC := IY | . | . | . | . | . | . | . | . | 11-111-101 11-101-001 |
FD E9 |
2 | 2 | 8 | |
DJNZ e | B := B - 1 if B ¹ 0 PC ¬ PC + e |
. | . | . | . | . | . | . | . | 00-010-000 <--e - 2--> |
10 | 2 2 |
2 3 |
8 13 |
if B=0 if B ¹ 0 |
CALL nn | SP := SP - 1 (SP) := PC.H SP := SP - 1 (SP) := PC.L PC := nn |
. | . | . | . | . | . | . | . | 11-001-101 <-----n------> <-----n------> |
CD | 3 | 5 | 17 | |
CALL cc, nn | if cc is true, SP := SP - 1 (SP) := PC.H SP := SP - 1 (SP) := PC.L PC := nn |
. | . | . | . | . | . | . | . | 11-ccc-100 <-----n------> <-----n------> |
3 3 |
3 5 |
10 17 |
if cc is false if cc is true |
|
RET | PC.L := (SP) SP := SP + 1 PC.H := (SP) SP := SP + 1 |
. | . | . | . | . | . | . | . | 11-001-001 | C9 | 1 | 3 | 10 | |
RET cc | if cc is true, PC.L := (SP) SP := SP + 1 PC.H := (SP) SP := SP + 1 |
. | . | . | . | . | . | . | . | 11-ccc-000 | 1 1 |
1 3 |
5 11 |
if cc is false if cc is true |
|
RETI2 | PC.L := (SP) SP ¬ SP + 1 PC.H := (SP) SP := SP + 1 |
. | . | . | . | . | . | . | . | 11-101-101 01-001-101 |
ED 4D |
2 | 4 | 14 | |
RETN1,2 | PC.L := (SP) SP := SP + 1 PC.H := (SP) SP := SP + 1 IFF.1 := IFF.2 |
. | . | . | . | . | . | . | . | 11-101-101 01-000-101 |
ED 45 |
2 | 4 | 14 | |
RST p | SP := SP - 1 (SP) := PC.H SP := SP - 1 (SP) := PC.L PC := p |
. | . | . | . | . | . | . | . | 11-t-111 | 1 | 3 | 11 | ||
NOP | No operations | . | . | . | . | . | . | . | . | 00-000-000 | 00 | 1 | 1 | 4 | |
HALT | CPU halted | . | . | . | . | . | . | . | . | 01-110-110 | 76 | 1 | 1 | 4 |