Zilog Z80380 User Manual
Page 88
Advertising

5-54
Z380
™
U
SER
'
S
M
ANUAL
DC-8297-03
Z
ILOG
EX
EXCHANGE REGISTER WITH ALTERNATE REGISTER (WORD)
EX dst,src
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, where the
destination is a word register in the primary bank and the source is the corresponding word
register in the alternate bank.
Flags:
S:
Unaffected
Z:
Unaffected
H:
Unaffected
V:
Unaffected
N:
Unaffected
C:
Unaffected
Addressing
Execute
Mode
Syntax
Instruction Format
Time
Note
R:
EX R,R’
11101101 11001011 001100rr
3
L
RX:
EX RX,RX’
11101101 11001011 0011010y
3
L
Field Encodings:
rr: 00 for BC, 01 for DE, 11 for HL
y:
0 for IX, 1 for IY
Advertising