beautypg.com

In0 input (from page 0) – Zilog Z80380 User Manual

Page 101

background image

5-67

Z380

U

SER

'

S

M

ANUAL

Z

ILOG

DC-8297-03

IN0

INPUT (FROM PAGE 0)

IN0 dst,(n)

dst = R

Operation:

dst

(n)

The byte of data from the selected on-chip peripheral is loaded into the destination register.
No external I/O transaction will be generated as a result of this instruction, although the
I/O address will appear on the address bus while this internal read is occurring. The
peripheral address is placed on the low byte of the address bus and zeros are placed on
all other address lines. When the second opcode byte is 30h no data is stored in a
destination; only the flags are updated.

Flags:

S:

Set if the input data is negative; cleared otherwise

Z:

Set if the input data is zero; cleared otherwise

H:

Cleared

P:

Set if the input data has even parity; cleared otherwise

N:

Cleared

C:

Unaffected

Addressing

Execute

Mode

Syntax

Instruction Format

Time

Note

R:

IN0 R,(n)

11101101 00 -r- 000 ——n—

3+i

none:

IN0 (n

11101101 00110000 ——n—

3+i

Field Encodings:

r:

per convention