eZ80
®
CPU
User Manual
UM007714-0908 CPU Instruction Set
219
LD (Mmn), SP
Load Indirect
Operation
(Mmn) ← SP
Description
The CPU stores the contents of the multibyte Stack Pointer Register
SP
in the memory
location specified by
Mmn
. In ADL mode, if
SP
is chosen, Stack Pointer Long (SPL) is
the source. In Z80 mode, if
SP
is chosen, Stack Pointer Short (SPS) is the source.
Condition Bits Affected
None.
Attributes
Zilog recommends against using the .SIL and .LIS suffixes with this instruction. The .SIL
instruction fetches a 24-bit value, Mmn. However, this instruction ignores the upper byte
and uses address {MBASE, mm, nn} instead. The .LIS instruction fetches a 16-bit value,
mn
. However, the .LIS instruction does not use the MBASE value. Instead, it uses address
{00, mm, nn}.
Mnemonic Operand
ADL
Mode Cycle Opcode (hex)
LD (mn),SP 06ED, 73, nn, mm
LD (Mmn),SP 18ED, 73, nn, mm, MM
LD.SIS (mn),SP 1740, ED, 73, nn, mm
LD.LIL (Mmn),SP 095B, ED, 73, nn, mm, MM