Z8018x Family
MPU User Manual
232
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
INPUT
INIR
11 101 101
10 110 010
D
S
2
14 (Br ¹ 0)
(BC) ® (HL)
X
S
X
X
•
X
I
M
Q
HL + 1® HL
R
R
12 (Br = 0)
Br-f® Br
Repeat Q until
Br = 0
Cr® A0~A7
Br® A8® A16
Ar® (Am)1
m® A0~A7
Ar® A8~A16
gr® (BC)1
OUTPUT OUT (m)A
OUT (C),g
11 010 011
S
D
D
D
D
2
2
3
2
10
10
13
14
·
·
·
·
·
·
·
·
·
·
<m>
11 101 101
01 g 001
S
S
·
·
·
·
Cr® A0~A7
Br® A8~A16
gr® (00m)1
m® A0~A7
00® A8~A16
OUT0(m),g**
OTDM**
11 101 101
00 g 001
<m>
·
·
·
·
(5)
(6)
11 101 101
10 001 011
S
(HL) ® (00C)1
•
•
•
P
•
•
M
HL -1® HL
R
R
Cr-1® Cr
Br-1® Br
Cr® A0~A7
00® A8~A16
(6)
OTDMR**
11 101 101
10 011 011
S
D
2
16 (Br ¹ 0)
(HL) ® (00C)1 R
S
R
S
•
R
M
HL -1-HL
R
R
14 (Br = 0)
Q
Cr~1® Cr
Br-1® Br
Repeat Q until
Br = 0
Cr® A0~A7
00® A8~A16
(6)
UM005001-ZMP0400