(IY+d) <- r
LD
(IY+d),r
b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 | |
---|---|---|---|---|---|---|---|---|
1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | $FD |
0 | 1 | 1 | 1 | 0 | r | |||
d |
The contents of resister r are loaded to the memory address specified by the sum of the contents of Index Register IY and d, a two’s-complement displacement integer. The r symbol is specified according to the following table.
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 $48, and Index Register IY contains $2A11, then the instruction
LD (IY+$4),C
performs the sum $2A11+$4 and loads $48 to memory location $2A15