<< Previous | Next >>

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

Opcode
Instruction
Operation
b,r A B C D E H L RES b,r 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

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
4
n/a
n/a
Rabbit 5000
4
4
2

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.


Rabbit Instructions << Previous | Next >> rabbit.com