ADD HL,ss

Operation

HL <- HL + ss

Mnemonic

ADD

Operands

HL,ss

b7b6b5b4b3b2b1b0
0 0 ss 1001

Description

The contents of register pair ss (any of register pairs BC, DE, HL, or SP) are added to the contents of register pair HL and the result is stored in HL. In the assembled object code, operand ss is specified as follows:

Register
Pair
rHex
BC00$09
DE01$19
HL10$29
SP11$39

Condition Bits Affected

Sis not affected.
Zis not affected.
His set if carry from bit 11, otherwise it is reset.
P/Vis not affected.
Nis reset.
Cis set if carry from bit 15, otherwise it is reset.

Example

If register pair HL contains the integer $4242 and register pair DE contains $1111, then upon the execution of

	ADD	HL,DE

the HL register pair contains $5353.