Is the register holding the first operand.
The register to test against.
This instruction tests the value in a register against another register. It updates the condition flags based on the result, but does not write the result to a register.
TST instruction performs a bitwise AND operation
on the value in
the value in
is the same as the
ANDS instruction, except that it
discards the result.
To test whether a bit of
0 or 1, use the
TST instruction with a register that
has that bit set to 1 and all other bits cleared to 0.
Updates the N and Z flags according to the result.
Does not affect the C or V flags.