r <- n
LD
r,n
| b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 |
|---|---|---|---|---|---|---|---|
| 0 | 0 | r | 1 | 1 | 0 | ||
| n | |||||||
The 8-bit integer n is loaded to any 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 | $3E |
| B | 000 | $06 |
| C | 001 | $0E |
| D | 010 | $16 |
| E | 011 | $1E |
| H | 100 | $26 |
| L | 101 | $2E |
None
Upon the execution of
LD E,$A5
register E will contain $A5