<< Previous | Next >>

BIT b,r     Bit Test     Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
b,r A B C D E H L BIT b,r r & b
0 CB 47 CB 40 CB 41 CB 42 CB 43 CB 44 CB 45
1 CB 4F CB 48 CB 49 CB 4A CB 4B CB 4C CB 4D
2 CB 57 CB 50 CB 51 CB 52 CB 53 CB 54 CB 55
3 CB 5F CB 58 CB 59 CB 5A CB 5B CB 5C CB 5D
4 CB 67 CB 60 CB 61 CB 62 CB 63 CB 64 CB 65
5 CB 6F CB 68 CB 69 CB 6A CB 6B CB 6C CB 6D
6 CB 77 CB 70 CB 71 CB 72 CB 73 CB 74 CB 75
7 CB 7F CB 78 CB 79 CB 7A CB 7B CB 7C CB 7D

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

Tests 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 Z flag is set if the tested bit is 0, reset if the bit is 1.


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