ZiLOG eZ80 User Manual page 155

Hide thumbs Also See for eZ80:
Table of Contents

Advertisement

EX (SP), IX/Y
Exchange Stack and Index Register
Operation
if ADL = 1 {
(SPL) ↔ IX/Y[7:0]
(SPL+1) ↔ IX/Y[15:8]
(SPL+2) ↔ IX/Y[23:16]
}
else if ADL = 0 {
SPS ↔ IX/Y[7:0]
(SPS+1) ↔ IX/Y[15:8]
}
Description
The CPU exchanges the contents of the multibyte Index Register, IX or IY, with the mem-
ory location specified by the Stack Pointer (SP). In ADL mode, or when the .L suffix is
employed, SPL is used for SP. In Z80 mode, or when the .S suffix is employed, SPS is
used for SP.
Condition Bits Affected
None.
Attributes
Mnemonic
EX
EX.S
EX.L
EX
EX.S
EX.L
UM007714-0908
Operand
ADL Mode
0/1
(SP),IX
1
(SP),IX
0
(SP),IX
0/1
(SP),IY
1
(SP),IY
0
(SP),IY
Cycle
Opcode (hex)
6/8
DD, E3
7
52, DD, E3
9
49, DD, E3
6/8
FD, E3
7
52, FD, E3
9
49, FD, E3
®
eZ80
CPU
User Manual
146
CPU Instruction Set

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the eZ80 and is the answer not in the manual?

Questions and answers

Table of Contents