(HL)b <- 0
RES
b,(HL)
| b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 | |
|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | $CB |
| 1 | 0 | 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 | $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 HL register pair contains $3000, then upon the execution of
RES 4,(HL)
bit 4 in memory location $3000 is 1. Bit 0 in memory location $3000 is the least-significant bit.