dd <- nn
LD
dd,nn
b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 |
---|---|---|---|---|---|---|---|
0 | 0 | d | 0 | 0 | 0 | 1 | |
n | |||||||
n |
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:
Register | dd | Hex |
---|---|---|
BC | 00 | $01 |
DE | 01 | $11 |
HL | 10 | $21 |
SP | 11 | $31 |
None
Upon the execution of
LD HL,$5000
register pair HL will contain $5000.