28
Rabbit 2000/3000 Microprocessor
Description
Tests the bit b (any of the bits 0, 1, 2, 3, 4, 5, 6, or 7) of the byte whose address is:
•
contained in HL, or
•
the sum of data in IX plus a displacement value d, or
•
the sum of data in IY plus a displacement value d.
The Z flag is set if the tested bit is 0, reset the bit is 1.
BIT b,(HL)
is a privileged instruction.
BIT
b
,(HL)
BIT
b
,(IX+
d
)
BIT
b
,(IY+
d
)
Opcode
Instruction
Clocks
Operation
——
CB 46
CB 4E
CB 56
CB 5E
CB 66
CB 6E
CB 76
CB 7E
BIT
b
,(HL)
BIT 0,(HL)
BIT 1,(HL)
BIT 2,(HL)
BIT 3,(HL)
BIT 4,(HL)
BIT 5,(HL)
BIT 6,(HL)
BIT 7,(HL)
7 (2,2,1,2)
7 (2,2,1,2)
7 (2,2,1,2)
7 (2,2,1,2)
7 (2,2,1,2)
7 (2,2,1,2)
7 (2,2,1,2)
7 (2,2,1,2)
7 (2,2,1,2)
(HL) & bit
(HL) & bit 0
(HL) & bit 1
(HL) & bit 2
(HL) & bit 3
(HL) & bit 4
(HL) & bit 5
(HL) & bit 6
(HL) & bit 7
——
DD CB
d
46
DD CB
d
4E
DD CB
d
56
DD CB
d
5E
DD CB
d
66
DD CB
d
6E
DD CB
d
76
DD CB
d
7E
BIT
b
,(IX+
d
)
BIT 0,(IX+
d
)
BIT 1,(IX+
d
)
BIT 2,(IX+
d
)
BIT 3,(IX+
d
)
BIT 4,(IX+
d
)
BIT 5,(IX+
d
)
BIT 6,(IX+
d
)
BIT 7,(IX+
d
)
10 (2,2,2,2,2)
10 (2,2,2,2,2)
10 (2,2,2,2,2)
10 (2,2,2,2,2)
10 (2,2,2,2,2)
10 (2,2,2,2,2)
10 (2,2,2,2,2)
10 (2,2,2,2,2)
10 (2,2,2,2,2)
(IX+
d
) & bit
(IX+
d
) & bit 0
(IX+
d
) & bit 1
(IX+
d
) & bit 2
(IX+
d
) & bit 3
(IX+
d
) & bit 4
(IX+
d
) & bit 5
(IX+
d
) & bit 6
(IX+
d
) & bit 7
——
FD CB
d
46
FD CB
d
4E
FD CB
d
56
FD CB
d
5E
FD CB
d
66
FD CB
d
6E
FD CB
d
76
FD CB
d
7E
BIT
b
,(IY+
d
)
BIT 0,(IY+
d
)
BIT 1,(IY+
d
)
BIT 2,(IY+
d
)
BIT 3,(IY+
d
)
BIT 4,(IY+
d
)
BIT 5,(IY+
d
)
BIT 6,(IY+
d
)
BIT 7,(IY+
d
)
10 (2,2,2,2,2)
10 (2,2,2,2,2)
10 (2,2,2,2,2)
10 (2,2,2,2,2)
10 (2,2,2,2,2)
10 (2,2,2,2,2)
10 (2,2,2,2,2)
10 (2,2,2,2,2)
10 (2,2,2,2,2)
(IY+
d
) & bit
(IY+
d
) & bit 0
(IY+
d
) & bit 1
(IY+
d
) & bit 2
(IY+
d
) & bit 3
(IY+
d
) & bit 4
(IY+
d
) & bit 5
(IY+
d
) & bit 6
(IY+
d
) & bit 7
Flags
ALTD
I/O
S
Z
L/V
C
F
R
SP
S
D
-
•
-
-
•
•
Summary of Contents for 2000
Page 2: ...ii Rabbit 2000 3000 Microprocessor...
Page 4: ...iv Rabbit 2000 Microprocessor...
Page 16: ...12 Rabbit 2000 3000 Microprocessor...
Page 164: ...160 Instruction Reference Manual...