eZ80
®
CPU
User Manual
UM007714-0908 CPU Instruction Set
87
ADC HL, SP
ADD with Carry
Operation
HL ← HL+SP+C
Description
The Stack Pointer and the Carry Flag (C in the F register) are added to the contents of the
HL register. The result is stored in the HL register. 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 Set if result is negative; reset otherwise.
Z Set if result is 0; reset otherwise.
H Set if carry from bit 11; reset otherwise.
P/V Set if overflow; reset otherwise.
N Reset.
C Set if carry from MSB; reset otherwise.
Mnemonic Operand ADL Mode Cycle Opcode (hex)
ADC HL,SP X2ED, 7A
ADC.S HL,SP 1352, ED, 7A
ADC.L HL,SP 0349, ED, 7A