Z8018x Family
MPU User Manual
231
Table 46. I/O Instructions
Flags
Addressing
7
6
4
2
1
0
Operation
Name
Mnemonics
Op Code
Immed Ext Ind Reg RegI Imp Rel Bytes States
Operation
(Am)1,® Ar
S
Z
H
P/V
N
C
INPUT
IN A,(m)
11 011 011
D
S
2
9
·
·
·
·
·
·
<m>
m® A0~A7
Ar® A8~A16
(BC)1® gr
IN g,(C)
11 101 101
01 g 000
D
D
S
2
9
g = 110 : Only the
flags change
Cr® A0~A7
•
•
•
•
R
R
P
P
R
R
·
·
Br® A8~16
IN0 g,(m)**
11 101 101
00 g 000
S
3
12
(00m)g® gr
g = 110 : Only the
flags change
m® A0~A7
<m>
(00)® A8~A16
(BC) ® (HL)
(5)
(6)
IND
11 101 101
10 101 010
D
D
S
S
2
2
12
X
X
•
X
X
X
X
•
X
X
M
M
Hl2® 1® Hl2
Br® 1® Br
Cr® A0~A7
(6)
INDR
11 101 101
10 111 010
14 (Br ¹ 0)
(BC)1® (HL)
S
•
M
Q
HL2® 1® HL8
Br-1® Br
12 (BR =
0)
Repeat Q until
Br = 0
Cr® A0~A7
Br® A8~A16
(5)
(6)
INI
11 101 101
10 100 010
D
S
2
12
(BC)1® (HL)
X
•
X
X
•
X
M
HL + 1® HL
R
R
Br-1® Br
Cr® A0~A7
Br® A8~A16
(6)
UM005001-ZMP0400