Z8018x Family
MPU User Manual
229
PROGRAM AND CONTROL INSTRUCTIONS
Table 45. Program Control Instructions
Flags
Addressing
Immed Ext Ind Reg RegI Imp Rel Bytes States
7
6
4
2
1
0
Operation
Name
Mnemonics Op Code
Operation
PCHr® (SP-1)
S
Z
H
P/V
N
C
Call
CALL mn
11 001 101
<n>
D
3
16
·
·
·
·
·
·
M
PCLr® (SP-2)
M
<m>
mn® PC
R
SP -2® SP
R
R
CALL f,mn 11 f 100
D
3
6 (f : false) continue : f is false
16 (f: true) CALL mn: f is true
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
<n>
<m>
Jump
DJNZj
JP f,mn
JP mn
00 010 000
D
2
2
9 (Br ¹ 0)
Br-1® Br
<j-2>
7 (Br = 0)
continue: Br = 0
PC + j® PC : Br ¹ 0
R
R
11 f 010
<n>
D
D
3
3
6 (f: false) mn® PC : f is true
R
9 (f: true)
continue: f is false
<m>
11 000 011
<n>
3
9
mn® PC
R
<m>
JP (HL)
JP (IX)
11 101 001
11 011 101
11 101 001
11 111 101
11 101 001
00 011 000
<j-2>
D
D
1
2
3
6
HL ® PC
·
·
·
·
·
·
·
·
·
·
·
·
R
R
IX ® PC
R
R
JP (IY)
JR j
D
2
2
6
8
IY ® PC
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
·
R
R
D
D
D
PC + j® PC
R R
JR Cj
JR NCj
00 111 000
<j-2>
2
2
2
2
6
8
6
8
continue: C = 0
PC + j® PC : C = 1
R
R
00 110 000
<j-2>
continue : C = 1
PC + j® PC : C = 0
R
R
UM005001-ZMP0400