eZ80
®
CPU
User Manual
UM007714-0908 CPU Instruction Set
236
LD SP, Mmn
Load Stack Pointer
Operation
SP ← Mmn
Description
The immediate operand,
Mmn
, is written to the multibyte Stack Pointer register (
SP
). In
ADL mode, or when the
.L
suffix is employed, Stack Pointer Long (SPL) is the destina-
tion. In Z80 mode, or when the
.S
suffix is employed, Stack Pointer Short (SPS) is the des-
tination.
Condition Bits Affected
None.
Attributes
Mnemonic Operand ADL Mode Cycle Opcode (hex)
LD SP,mn 0331, nn, mm
LD SP,Mmn 1431, nn, mm, MM
LD.LIL SP,Mmn 055B, 31, nn, mm, MM
LD.SIS SP,mn 1440, 31, nn, mm