(HL)b <- 1
SET
b,(HL)
| b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 | |
|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | $CB |
| 1 | 1 | b | 1 | 1 | 0 | |||
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 Tested | b | Hex |
|---|---|---|
| 0 | 000 | $C6 |
| 1 | 001 | $CE |
| 2 | 010 | $D6 |
| 3 | 011 | $DE |
| 4 | 100 | $E6 |
| 5 | 101 | $EE |
| 6 | 110 | $F6 |
| 7 | 111 | $FE |
None
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.