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
Mnemonic Operand
LD
LD
LD.SIS
LD.LIL
Note:
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}.
UM007714-0908
ADL
Mode Cycle Opcode (hex)
0
6
(mn),SP
(Mmn),SP 1
8
1
7
(mn),SP
(Mmn),SP 0
9
ED, 73, nn, mm
ED, 73, nn, mm, MM
40, ED, 73, nn, mm
5B, ED, 73, nn, mm, MM
®
eZ80
CPU
User Manual
219
CPU Instruction Set
Need help?
Do you have a question about the eZ80 and is the answer not in the manual?
Questions and answers