EasyManua.ls Logo

ZiLOG eZ80

Default Icon
411 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
eZ80
®
CPU
User Manual
UM007714-0908 CPU Instruction Set
146
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 Operand ADL Mode Cycle Opcode (hex)
EX (SP),IX 0/1 6/8 DD, E3
EX.S (SP),IX 1 7 52, DD, E3
EX.L (SP),IX 0 9 49, DD, E3
EX (SP),IY 0/1 6/8 FD, E3
EX.S (SP),IY 1 7 52, FD, E3
EX.L (SP),IY 0 9 49, FD, E3

Related product manuals