LD (nn),dd

Operation

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

Mnemonic

LD

Operands

(nn),dd

b7b6b5b4b3b2b1b0
1 1 1 0 1 1 0 1$ED
0 1 dd0 0 1 1
n
n

Description

The low-order byte of register pair dd is loaded to memory address (nn); the upper byte is loaded to memory address (nn + 1). Register pair dd defines either BC, DE, HL, or SP, assembled as follows in the object code:

RegisterddHex
BC00$43
DE01$53
HL10$63
SP11$73

Condition Bits Affected

None

Example

If register pair BC contains the number $4644, the instruction

	LD	($1000),BC

result in $44 in memory location $1000 and $46 in memory location $1001