ddh <- (nn+1), ddl <- (nn)
LD
dd,(nn)
b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 | |
---|---|---|---|---|---|---|---|---|
1 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | $ED |
0 | 1 | dd | 1 | 0 | 1 | 1 | ||
n | ||||||||
n |
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:
Register | dd | Hex |
---|---|---|
BC | 00 | $4B |
DE | 01 | $5B |
HL | 10 | $6B |
SP | 11 | $7B |
None
If address $2130 contains $65 and address $2131 contains $78, then upon execution of
LD BC,($2130)
the register pair BC will contain $7865.