Z
ILOG
EX (SP),dst
Operation:
if (LW) then begin
(SP+3) ↔ dst(31-24)
(SP+2) ↔ dst(23-16)
end
(SP+1)
(SP)
The contents of the destination register are exchanged with the top of the stack. In Long
Word mode this exchange is two words; otherwise it is one word.
Flags:
S:
Unaffected
Z:
Unaffected
H:
Unaffected
V:
Unaffected
N:
Unaffected
C:
Unaffected
Addressing
Mode
Syntax
R:
EX (SP),HL
EX (SP),XY
Field Encodings: y: 0 for IX, 1 for IY
DC-8297-03
EXCHANGE ADDRESSING REGISTER WITH TOP OF STACK
dst = HL, IX, IY
↔ dst(15-8)
↔ dst(7-0)
Instruction Format
11100011
11y11101 11100011
Execute
Time
Note
3+r+w
L
3+r+w
L
™
Z380
U
'
M
SER
S
ANUAL
EX
5-51
Need help?
Do you have a question about the Z80380 and is the answer not in the manual?
Questions and answers