This instructions is used to test if one or more bits are set in a target memory location. The mask pattern in A is ANDed with the value in memory to set or clear the zero flag, but the result is not kept. Bits 7 and 6 of the value from memory are copied into the N and V flags.

C 	Carry Flag 	  Not affected
Z 	Zero Flag 	  Set if the result if the AND is zero
I 	Interrupt Disable Not affected
D 	Decimal Mode Flag Not affected
B 	Break Command 	  Not affected
V 	Overflow Flag 	  Set to bit 6 of the memory value
N 	Negative Flag 	  Set to bit 7 of the memory value

Bit is referenced in 1 repository