beautypg.com

Ld load accumulator – Zilog Z80380 User Manual

Page 116

background image

5-82

Z380

U

SER

'

S

M

ANUAL

DC-8297-03

Z

ILOG

LD
LOAD ACCUMULATOR

LD dst,src

dst = A
src = R, RX, IM, IR, DA, X

or

dst = R, RX, IR, DA, X
src = A

Operation:

dst

src

The contents of the source are loaded into the destination.

Flags:

S:

Unaffected

Z:

Unaffected

H:

Unaffected

V:

Unaffected

N:

Unaffected

C:

Unaffected

Load into Accunulator
Addressing

Execute

Mode

Syntax

Instruction Format

Time

Note

R:

LD A,R

01111-r-

2

RX:

LD A,RX

11y11101 0111110w

2

IM:

LD A,n

00111110 ——n—

2

IR:

LD A,(HL)

01111110

2+r

LD A,(IR)

000a1010

2+r

DA:

LD A,(nn)

00111010 -n(low)- -n(high)

3+r

I

X:

LD A,(XY+d)

11y11101 01111110 ——d—

4+r

I

Load from Accunulator
Addressing

Execute

Mode

Syntax

Instruction Format

Time

Note

R:

LD Rd,A

01-r-111

2

RX:

LD RX,A

11y11101 0110w111

2

IR:

LD (HL),A

01110111

3+w

LD (IR),A

000a0010

3+w

DA:

LD (nn),A

00110010 -n(low)- -n(high)

4+w

I

X

:

LD (XY+d),A

11y11101 01110111 ——d—

5+w

I

Field Encodings:

r:

per convention

y:

0 for IX, 1 for IY

w: 0 for high byte, 1 for low byte
a:

0 for BC, 1 for DE