* Question
What is a comparison/zero test instruction? |
* Answer
The compare instruction is used to compare the value in register A, X or H:X with the immediate value or the value of the memory cell. It performs the subtraction operation, but does not change the value of any original operand, but changes the CCR register according to the result of the operation.The V, N, and Z flag positions have no effect on H and I.The zero test command TST is used to test whether the value of A, X, or storage unit is less than or equal to 0. It performs the operation of zero reduction, but does not change the value of the original operand, but changes the N and Z flag bits according to the result. |
COMMENTS