SET b,(HL)

Operation

(HL)b <- 1

Mnemonic

SET

Operands

b,(HL)

b7b6b5b4b3b2b1b0
1 1 0 0 1 0 1 1$CB
1 1 b 1 1 0

Description

Bit b in the memory location addressed by the contents of register pair HL 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 HL register pair contains $3000, then upon the execution of

	SET	4,(HL)

bit 4 in memory location $3000 is 1. Bit 0 in memory location $3000 is the least-significant bit.