LD dd,(nn)

Operation

ddh <- (nn+1), ddl <- (nn)

Mnemonic

LD

Operands

dd,(nn)

b7b6b5b4b3b2b1b0
1 1 1 0 1 1 0 1$ED
0 1 dd1011
n
n

Description

The contents of address (nn) are loaded to the low-order portion of register pair dd, and the contents of the next highest memory address (nn + 1) are loaded to the high-order portion of dd. Register pair dd defines BC, DE, HL, or SP register pairs, assembled as follows in the object code:

RegisterddHex
BC00$4B
DE01$5B
HL10$6B
SP11$7B

Condition Bits Affected

None

Example

If address $2130 contains $65 and address $2131 contains $78, then upon execution of

	LD	BC,($2130)

the register pair BC will contain $7865.