Z8018x Family
MPU User Manual
230
Table 45. Program Control Instructions (Continued)
Flags
2
Addressing
Immed Ext Ind Reg RegI Imp Rel Bytes States
7
6
4
1
0
Operation
Name
Mnemonics Op Code
Operation
S
Z
H
P/V
N
C
Jump
JR Zj
JR NZj
RET
00 101 000
<j-2>
D
2
2
2
2
1
6
8
6
8
9
continue : Z = 0
·
·
·
·
·
·
PC , + j® PC : Z = 1
R
R
00 100 000
<j-2>
D
continue : Z = 1
PC + j® PC : Z = 0
R
R
Return
11001001
D
(SP) ® PCLr
·
·
·
·
·
·
M
(SP + 1) ® PCHr
M
SP + 2® SP
R
R
RET f
RETI
11f 000
D
1
1
2
5 (f : false) continue : f is false
10 (f : true) RET : f is true
·
·
·
·
·
·
·
·
·
·
·
·
11101101
01001101
D
D
12 (R0,R1) (SP) ® PCLr
M
ZZ(z)
(SP + 1) ® PCHr
M
SP + 2® SP
R
R
RETN
RST v
11101101
01000101
2
1
12
(SP) ® PCLr
·
·
·
·
·
·
·
·
·
·
·
·
M
(SP + 1) ® PCHr
M
SP + 2® SP
R
R
IEF2® IEF1
Restart
11 v 111
D
11
PCHr® (SP-1)
M
PCLr® (SP-2)
0® PCHr
M
v® PCLr
SP -2® SP
R
R
UM005001-ZMP0400