(nn+1) <- ddh, (nn) <- ddl
LD
(nn),dd
b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 | |
---|---|---|---|---|---|---|---|---|
1 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | $ED |
0 | 1 | dd | 0 | 0 | 1 | 1 | ||
n | ||||||||
n |
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:
Register | dd | Hex |
---|---|---|
BC | 00 | $43 |
DE | 01 | $53 |
HL | 10 | $63 |
SP | 11 | $73 |
None
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