beautypg.com

Ex exchange register (word) – Zilog Z80380 User Manual

Page 86

background image

5-52

Z380

U

SER

'

S

M

ANUAL

DC-8297-03

Z

ILOG

EX
EXCHANGE REGISTER (WORD)

EX dst,src

dst = R, RX
src = R, RX

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 destination are exchanged with the contents of the source.

Flags:

S:

Unaffected

Z:

Unaffected

H:

Unaffected

V:

Unaffected

N:

Unaffected

C:

Unaffected

Addressing

Execute

Mode

Syntax

Instruction Format

Time

Note

R:

EX BC,DE

11101101 00000101

3

L

EX BC,HL

11101101 00001101

3

L

EX DE,HL

11101011

3

L

RX:

EX R,RX

11101101 00rry011

3

L

EX IX,IY

11101101 00101011

3

L

Field Encodings:

rr: 00 for BC, 01 for DE, 11 for HL
y:

0 for IX, 1 for IY