BIT
Test Bit
7-46
Cycles for a Single BIT Instruction
Program
Operand
ROM
DARAM
SARAM
External
DARAM
1
1
1
1+p
SARAM
1
1
1, 2
†
1+p
External
1+d
1+d
1+d
2+d+p
† If the operand and the code are in the same SARAM block
Cycles for a Repeat (RPT) Execution of a BIT Instruction
Program
Operand
ROM
DARAM
SARAM
External
DARAM
n
n
n
n+p
SARAM
n
n
n, n+1
†
n+p
External
n+nd
n+nd
n+nd
n+1+p+nd
† If the operand and the code are in the same SARAM block
Example 1
BIT
0h,15
;(DP = 6). Test LSB at 300h
Before Instruction
After Instruction
Data Memory
Data Memory
300h
4DC8h
300h
4DC8h
TC
0
TC
0
Example 2
BIT
*,0,AR1
;Test MSB at 310h, then set ARP = 1
Before Instruction
After Instruction
ARP
0
ARP
1
AR0
310h
AR0
310h
Data Memory
Data Memory
310h
8000h
310h
8000h
TC
0
TC
1
Cycles