This the multi-page printable view of this section.Click here to print.

Return to the regular view of this page.

Program Flow Instructions

How to decode program flow instructions from binary

Table of Contents

Opcode format
76543210
0001D000
e-2
 
001cc000JR
e-2
 
11000011JP
7nn0
158
 
11001001RET
 
11001101CALL
7nn0
158
 
11101001JP (HL)
 
11ccc000RET
 
11ccc010JP
7nn0
158
 
11ccc100CALL
7nn0
158
 
11b111RST
Conditions
cccccAbbrev Condition Flag
00000NZ Non Zero Z
01001Z Zero
10010NC No Carry C
11011C Carry
 100 PO Parity Odd P/V
101 PE Parity Even
110 P Sign Positive S
111 M Sign Negative
Bits
Valueb
0000
1001
2010
3011
4100
5101
6110
7111
D
InstructionD
DJNZ0
JR1