eZ80
®
CPU
User Manual
UM007714-0908 CPU Instruction Set
99
ADD IX/Y, SP
ADD without Carry
Operation
IX/Y ← IX/Y+SP
Description
The CPU adds the contents of the multibyte Stack Pointer register (
SP
) to the contents of
the Index Register, IX or IY, and stores the results in the Index Register, IX or IY. In ADL
mode, or when the
.L
suffix is employed, SPL is used for
SP
. In Z80 mode, or when the
.S
suffix is employed, SPS is used for
SP
.
Condition Bits Affected
Attributes
S Not affected.
Z Not affected.
H Set if carry from bit 11; reset otherwise.
P/V Not affected.
N Reset.
C Set if carry from MSB; reset otherwise.
Mnemonic Operand ADL Mode Cycle Opcode (hex)
ADD IX,SP X2DD, 39
ADD.S IX,SP 1352, DD, 39
ADD.L IX,SP 0349, DD, 39
ADD IY,SP X2FD, 39
ADD.S IY,SP 1352, FD, 39
ADD.L IY,SP 0349, FD, 39