39
BIT
BIT
TEST
BIT
IN MEMORY WITH ACCUMULATOR
(A)
∧
(M)
This instruction takes a bit-wise logical AND of A and M
contents; however, the contents of A and M are not modified.
The contents of N, V, Z are changed, but the contents of A, M
remain unchanged.
N is 1 when bit 7 of M is 1; otherwise it is 0.
V is 1 when bit 6 of M is 1; otherwise it is 0.
No change
No change
No change
No change
Z is 1 when the result of the operation is 0; otherwise Z is
0.
No change
Op e r a t io n :
F u n c t io n :
St a t u s fla g :
N :
V :
T :
B :
I :
D :
Z :
C :
Cycle number
3
4
Machine codes
24
16
, zz
16
2C
16
, ll
16
, hh
16
Statement
∆
BIT
∆
$zz
∆
BIT
∆
$hhll
Byte number
2
3
Addressing mode
Zero page
Absolute