ZiLOG eZ80 User Manual page 154

Hide thumbs Also See for eZ80:
Table of Contents

Advertisement

EX (SP), HL
Exchange Stack and HL Register
Operation
if ADL = 1 {
(SPL) ↔ HL[7:0]
(SPL+1) ↔ HL[15:8]
(SPL+2) ↔ HL[23:16]
}
else if ADL = 0 {
SPS ↔ HL[7:0]
(SPS+1) ↔ HL[15:8]
}
Description
The CPU exchanges the contents of the multibyte CPU register HL with the contents of
the memory 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
UM007714-0908
Operand
ADL Mode
0/1
(SP),HL
1
(SP),HL
0
(SP),HL
Cycle
Opcode (hex)
5/7
E3
6
52, E3
8
49, E3
®
eZ80
CPU
User Manual
145
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