(HL) <- r
LD
(HL),r
b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 |
---|---|---|---|---|---|---|---|
0 | 1 | 1 | 1 | 0 | r |
The contents of register r is loaded to the memory location specified by the contents of the HL register pair. The r symbol identifies registers A, B, C, D, E, H, or L, assembled as follows in the object code:
Register | r | Hex |
---|---|---|
A | 111 | $77 |
B | 000 | $70 |
C | 001 | $71 |
D | 010 | $72 |
E | 011 | $73 |
H | 100 | $74 |
L | 101 | $75 |
None
If the contents of register pair HL specify memory location $2146 and register B contains byte $29, then upon the execution of
LD (HL),B
memory address $2146 also contains $29.