Z8018x Family
MPU User Manual
233
Table 46. I/O Instructions (Continued)
Flags
Addressing
Immed Ext Ind Reg RegI Imp Rel Bytes States
7
6
4
2
1
0
Operation
Name
Mnemonics
Op Code
Operation
S
Z
H
P/V
N
C
OUTPUT OTDR
11 101 101
10 111 011
S
S
S
D
D
D
2
2
2
14 (Br ¹ 0)
(HL) ® (BC)
1
X
S
X
X
•
X
M
M
R
Q
HL -1® HL
R
12 (Br = 0)
Br-1Br
Repeat Q until
Br = 0
Cr® A0~A7
Br® A8~A16
(HL) ® (BC)
(5)
(6)
Q
M
M
OUTI
11 101 101
10 100 011
12
X
•
X
X
•
X
HL + 1® HL
R
R
Br-1® Br
Repeat Q until
BR = 0
Cr® A0~A7
Br® A8~A16
(6)
OTIR
11 101 101
10 110 011
14 (Br ¹ 0)
(HL) ® (BC)
X
S
X
X
•
X
M
M
Q
HL + 1® HL
R
R
12 (Br = 0)
Br-1® Br
Repeat Q until
Br = 0
Cr® A0~A7
Br® A8~A16
(00C)1*m
TSTIOm**
11 101 101
01 110 100
<m>
S
S
D
3
2
12
14
•
•
•
S
P
P
R
R
Cr® A0~A7
00® A8~A16
(HL) ® (00C)
(5)
(6)
OTIM**
11 101 101
10 000 011
S
•
•
•
•
M
I
HL + 1® HL
R
R
Cr + 1® Cr
Br-1® Br
Cr® A0~A7
00® A8~A16
(6)
UM005001-ZMP0400