<< Previous | Next >>

> RES b,r Bit Reset Rabbit 2000/3000/4000 Instruction

> Opcode | Instruction | Clocks | Operation
> b,r | A | B | C | D | E | H | L | RES b,r | 4 (2,2) | r = r & ~bit
> 0 | CB 87 | CB 80 | CB 81 | CB 82 | CB 83 | CB 84 | CB 85 |
> 1 | CB 8F | CB 88 | CB 89 | CB 8A | CB 8B | CB 8C | CB 8D
> 2 | CB 97 | CB 90 | CB 91 | CB 92 | CB 93 | CB 94 | CB 95
> 3 | CB 9F | CB 98 | CB 99 | CB 9A | CB 9B | CB 9C | CB 9D
> 4 | CB A7 | CB A0 | CB A1 | CB A2 | CB A3 | CB A4 | CB A5
> 5 | CB AF | CB A8 | CB A9 | CB AA | CB AB | CB AC | CB AD
> 6 | CB B7 | CB B0 | CB B1 | CB B2 | CB B3 | CB B4 | CB B5
> 7 | CB BF | CB B8 | CB B9 | CB BA | CB BB | CB BC | CB BD

> 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 r (any of the registers A, B, C, D, E, H, or L).

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

<< Previous | Next >>