SET b,(IY+d)

Operation

(IY+d)b <- 1

Mnemonic

SET

Operands

b,(IY+d)

b7b6b5b4b3b2b1b0
1 1 1 1 1 1 0 1$FD
1 1 0 0 1 0 1 1$CB
d
1 1 b 1 1 0

Description

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 TestedbHex
0000$C6
1001$CE
2010$D6
3011$DE
4100$E6
5101$EE
6110$F6
7111$FE

Condition Bits Affected

None

Example

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

	SET	0,(IY+$3)

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