RES b,(IX+d)

Operation

(IX+d)b <- 0

Mnemonic

RES

Operands

b,(IX+d)

b7b6b5b4b3b2b1b0
1 1 0 1 1 1 0 1$DD
1 1 0 0 1 0 1 1$CB
d
1 0 b 1 1 0

Description

Bit b in the memory location addressed by the sum of the contents of the IX register pair and the two's complement integer d is set. In the assembled object code, operand b is specified as follows:

Bit TestedbHex
0000$86
1001$8E
2010$96
3011$9E
4100$A6
5101$AE
6110$B6
7111$BE

Condition Bits Affected

None

Example

If the index register contains $2000, then upon the execution of

	RES	0,(IX+$3)

bit 0 in memory location 2003h is 1. Bit 0 in memory location $2003 is the least-significant bit.