Table 46. I/O Instructions - ZiLOG Z8018 Series User Manual

Mpu
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Z8018 Series and is the answer not in the manual?

Table of Contents