eZ80
®
CPU
User Manual
UM007714-0908 CPU Instruction Set
234
LD SP, HL
Load Stack Pointer
Operation
SP ← HL
Description
The CPU writes the contents of the multibyte CPU register HL to the Stack Pointer. In
ADL mode, or when the
.L
suffix is employed, the destination is Stack Pointer Long
(SPL). In Z80 mode, or when the
.S
suffix is employed, the destination is Stack Pointer
Short (SPS).
Condition Bits Affected
None.
Attributes
Mnemonic Operand ADL Mode Cycle Opcode (hex)
LD SP,HL x 1 F9
LD.S SP,HL 1 2 52, F9
LD.L SP,HL 0 2 49, F9