beautypg.com

Ld load from i or r register (byte) – Zilog Z80380 User Manual

Page 124

background image

5-90

Z380

U

SER

'

S

M

ANUAL

DC-8297-03

Z

ILOG

LD
LOAD FROM I OR R REGISTER (BYTE)

LD dst,src

dst = A
src = I, R

Operation:

dst

src

The contents of the source are loaded into the accumulator. The contents of the source are
not affected. The Sign and Zero flags are set according to the value of the data transferred;
the Overflow flag is set according to the state of the interrupt enable. Note that if an interrupt
occurs during execution of either of these instructions the Overflow flag reflects the prior
state of the interrupt enable. Also note that the R register does not contain the refresh
address and is not modified by refresh transactions.

Flags:

S:

Set if the data loaded into the accumulator is negative; cleared otherwise

Z:

Set if the data loaded into the accumulator is zero; cleared otherwise

H:

Cleared

V:

Set when loading the accumulator if interrupts are enabled; cleared otherwise

N:

Cleared

C:

Unaffected

Addressing

Execute

Mode

Syntax

Instruction Format

Time

Note

LD A,I

11101101 01010111

2

LD A,R

11101101 01011111

2