<< Previous | Next >>

> RES b,(HL) Bit Reset Rabbit 2000/3000/4000 Instruction

> Opcode | Instruction | Clocks | Operation
> ---- | RES b,(HL) | 10 (2,2,1,2,3) | (HL) = (HL) & ~bit b
> CB 86 | RES 0,(HL) | 10 (2,2,1,2,3) | (HL) = (HL) & ~bit 0
> CB 8E | RES 1,(HL) | 10 (2,2,1,2,3) | (HL) = (HL) & ~bit 1
> CB 96 | RES 2,(HL) | 10 (2,2,1,2,3) | (HL) = (HL) & ~bit 2
> CB 9E | RES 3,(HL) | 10 (2,2,1,2,3) | (HL) = (HL) & ~bit 3
> CB A6 | RES 4,(HL) | 10 (2,2,1,2,3) | (HL) = (HL) & ~bit 4
> CB AE | RES 5,(HL) | 10 (2,2,1,2,3) | (HL) = (HL) & ~bit 5
> CB B6 | RES 6,(HL) | 10 (2,2,1,2,3) | (HL) = (HL) & ~bit 6
> CB BE | RES 7,(HL) | 10 (2,2,1,2,3) | (HL) = (HL) & ~bit 7

> Flags | ALTD | IOI/IOE
> S | Z | L/V | C | F | R | SP | S | D
> - | - | - | - |  |  |  |  | ·

> #### Description

> Resets bit b (any of the bits 0, 1, 2, 3, 4, 5, 6, or 7) of the data whose address is in HL

> The bit is reset by performing a bitwise AND between the selected bit and its complement.

<< Previous | Next >>