LD dd,nn

Operation

dd <- nn

Mnemonic

LD

Operands

dd,nn

b7b6b5b4b3b2b1b0
0 0 d0001
n
n

Description

The 2-byte integer nn is loaded to the dd register pair, in which dd defines the BC, DE, HL, or SP register pairs, assembled as follows in the object code:

RegisterddHex
BC00$01
DE01$11
HL10$21
SP11$31

Condition Bits Affected

None

Example

Upon the execution of

	LD	HL,$5000

register pair HL will contain $5000.