![ZiLOG Z80380 Скачать руководство пользователя страница 85](http://html1.mh-extra.com/html/zilog/z80380/z80380_user-manual_3733943085.webp)
5-51
Z380
™
U
SER
'
S
M
ANUAL
Z
ILOG
DC-8297-03
EX
EXCHANGE ADDRESSING REGISTER WITH TOP OF STACK
EX (SP),dst
dst = HL, IX, IY
Operation:
if (LW) then begin
(SP+3)
↔
dst(31-24)
(SP+2)
↔
dst(23-16)
end
(SP+1)
↔
dst(15-8)
(SP)
↔
dst(7-0)
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
Execute
Mode
Syntax
Instruction Format
Time
Note
R:
EX (SP),HL
11100011
3+r+w
L
EX (SP),XY
11y11101 11100011
3+r+w
L
Field Encodings:
y: 0 for IX, 1 for IY