beautypg.com

Ld[w] load register (word) – Zilog Z80380 User Manual

Page 121

background image

5-87

Z380

U

SER

'

S

M

ANUAL

Z

ILOG

DC-8297-03

LD[W]

LOAD REGISTER (WORD)

LD[W] dst,src

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

or

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

Operation:

if (LW) then begin

dst(31-0)

src(31-0)

end

else begin

dst(15-0)

src(15-0)

end

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 Register
Addressing

Execute

Mode

Syntax

Instruction Format

Time

Note

R:

LD Rd,Rs

11rs1101 00rd0010

2

L

RX:

LD R,RX

11y11101 00rr1011

2

L

IR:

LD R,(IR)

11011101 00rr11ri

2+r

L

LD RX,(IR)

11y11101 00ri0011

2+r

L

DA:

LD HL,(nn)

00101010 -n(low)- -n(high)

3+r

I, L

LD R,(nn)

11101101 01ra1011 -n(low)- -n(high)

3+r

I, L

LD RX,(nn)

11y11101 00101010 -n(low)- -n(high)

3+r

I, L

X:

LD R,(XY+d)

11y11101 11001011 ——d— 00rr0011

4+r

I, L

LD IX,(IY+d)

11111101 11001011 ——d— 00100011

4+r

I, L

LD IY,(IX+d)

11011101 11001011 ——d— 00100011

4+r

I, L

SR:

LD R,(SP+d)

11011101 11001011 ——d— 00rr0001

4+r

I, L

LD RX,(SP+d)

11y11101 11001011 ——d— 00100001

4+r

I, L