beautypg.com

Table 46, I/o instructions, Z8018x family mpu user manual – Zilog Z80180 User Manual

Page 247: Table 46. i/o instructions

background image

Z8018x

Family MPU User Manual

UM005003-0703

231

Table 46. I/O Instructions

Operation
Name

Mnemonics

Op Code

Addressing

Bytes States

Operation

Flags

7

6

4 2

1

0

Immed Ext Ind Reg RegI Imp Rel

S

Z

H P/V N

C

INPUT

IN A,(m)

11 011 011

D

S

2

9

(Am)1,

®Ar

· ·

· ·

·

·

m

®A0~A7

Ar

®A8~A16

IN g,(C)

11 101 101

D

S

2

9

(BC)1

®gr

01 g 000

g = 110 : Only the

­ ­

R P

R

·

flags change

Cr

®A0~A7

Br

®A8~16

IN0 g,(m)**

11 101 101

D

S

3

12

(00m)g

®gr

­ ­

R P

R

·

00 g 000

g = 110 : Only the

flags change

m

®A0~A7

(00)

®A8~A16

(5)

(6)

IND

11 101 101

D

S

2

12

(BC)

M

®(HL)

M

X

­

X X

­

X

10 101 010

Hl2

®1®Hl2

Br

®1®Br

Cr

®A0~A7

(6)

INDR

11 101 101

D

S

2

14 (Br

¹ 0) (BC)1®(HL)

M

Q

HL2

®1®HL8

Br-1

®Br

X S

X X

­

X

10 111 010

12 (BR =
0)

Repeat Q until

Br = 0

Cr

®A0~A7

Br

®A8~A16

(5)

(6)

INI

11 101 101

D

S

2

12

(BC)1

®(HL)

M

X

­

X X

­

X

10 100 010

HL

R

+ 1

®HL

R

Br-1

®Br

Cr

®A0~A7

Br

®A8~A16

(6)

This manual is related to the following products: