<< Previous | Next >>

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

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

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

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.


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