@opcode(<EOL><NUM_LIT>, <EOL><NUM_LIT>, <EOL>)<EOL><INDENT>def instruction_TST_register(self, opcode, register):<DEDENT>
x = register.value<EOL>self.clear_NZV()<EOL>self.update_NZ_8(x)<EOL>
Set the N (negative) and Z (zero) bits according to the contents of
accumulator A or B, and clear the V (overflow) bit. The TST instruction
provides only minimum information when testing unsigned values; since no
unsigned value is less than zero, BLO and BLS have no utility. While BHI
could be used after TST, it provides exactly the same control as BNE,
which is preferred. The signed branches are available.

The MC6800 processor clears the C (carry) bit.

source code forms: TST Q; TSTA; TSTB

CC bits "HNZVC": -aa0-