r <- (HL)
LD
r,(HL)
| b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 |
|---|---|---|---|---|---|---|---|
| 0 | 1 | r | 1 | 1 | 0 | ||
| n | |||||||
The 8-bit contents of memory location (HL) are loaded to register r, in which r identifies registers A, B, C, D, E, H, or L, assembled as follows in the object code:
| Register | r | Hex |
|---|---|---|
| A | 111 | $7E |
| B | 000 | $46 |
| C | 001 | $4E |
| D | 010 | $56 |
| E | 011 | $5E |
| H | 100 | $66 |
| L | 101 | $6E |
None
If register pair HL contains the number $75A1 and memory address $75A1 contains the byte $58, the execution of
LD C,(HL)
results in $58 in register C