(IX+d) <- r
LD
(IX+d),r
b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 | |
---|---|---|---|---|---|---|---|---|
1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | $DD |
0 | 1 | 1 | 1 | 0 | r | |||
d |
The (IX+d) operand (i.e., the contents of Index Register IX summed with two’s-complement displacement integer d) is 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 | $77 |
B | 000 | $70 |
C | 001 | $71 |
D | 010 | $72 |
E | 011 | $73 |
H | 100 | $74 |
L | 101 | $75 |
None
If the C register contains byte $1C, and Index Register IX contains $3100, then the instruction
LD (IX+$6),C
performs the sum $3100+$6 and loads $1C to memory location $3106