What is function of the BIT instruction? What is difference between the BIT and TST?
BIT can test bit in memory with accumulator A by doing AND operation on every bit. The AND result is not saved, i.e., it doesn”t change the accumulator value and the memory value. It can change the flag value of N, V, Z of state register. TST is a bit operation instruction for judging a certain bit; it changes the Z flag only.
Related Questions
- What happens if the LMD18245 loop bit is not set when all 8 instructions in the instruction RAM are being used?
- I operate a flight school. Does instruction in a flight simulator qualify as a safety-sensitive function?
- What is function of the BIT instruction? What is difference between the BIT and TST?