(IY+d)b <- 0
RES
b,(IY+d)
b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 | |
---|---|---|---|---|---|---|---|---|
1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | $FD |
1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | $CB |
d | ||||||||
1 | 0 | b | 1 | 1 | 0 |
Bit b in the memory location addressed by the sum of the contents of the IY register pair and the two's complement integer d is set. In the assembled object code, operand b is specified as follows:
Bit Tested | b | Hex |
---|---|---|
0 | 000 | $86 |
1 | 001 | $8E |
2 | 010 | $96 |
3 | 011 | $9E |
4 | 100 | $A6 |
5 | 101 | $AE |
6 | 110 | $B6 |
7 | 111 | $BE |
None
If the index register contains $2000, then upon the execution of
RES 0,(IY+$3)
bit 0 in memory location 2003h is 1. Bit 0 in memory location $2003 is the least-significant bit.