EasyManuals Logo

ZiLOG eZ80 User Manual

Default Icon
411 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #246 background imageLoading...
Page #246 background image
eZ80
®
CPU
User Manual
UM007714-0908 CPU Instruction Set
237
LD SP, (Mmn)
Load Stack Pointer
Operation
SP (Mmn)
Description
The 16- or 24-bit operand
(Mmn)
specifies a location in memory. The 16- or 24-bit value
stored at this memory location 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
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 SP,(mn) 05ED, 7B, nn, mm
LD SP,(Mmn) 16ED, 7B, nn, mm, MM
LD.LIL SP,(Mmn) 075B, ED, 7B, nn, mm, MM
LD.SIS SP,(mn) 1640, ED, 7B, nn, mm
Note:

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ZiLOG eZ80 and is the answer not in the manual?

ZiLOG eZ80 Specifications

General IconGeneral
BrandZiLOG
ModeleZ80
CategoryComputer Hardware
LanguageEnglish

Related product manuals