TEST ACC
6-362
TEST ACC Test for Accumulator Equal to Zero
SYNTAX OPTIONS OPCODE OBJMODE RPT CYC
TEST ACC 1111 1111 0101 1000 X − 1
Operands ACC Accumulator register
Description Compare the ACC register to zero and set the status flag bits accordingly:
Modify flags on (ACC − 0x00000000);
Flags and
Modes
N If bit 31 of the ACC is 1, N is set; else N is cleared.
Z If ACC is zero, Z is set; else Z is cleared.
Repeat This instruction is not repeatable. If this instruction follows the RPT in-
struction, it resets the repeat counter (RPTC) and executes only once.
Example
; Test contents of ACC and branch if zero:
TEST ACC ; Modify flags on (ACC − 0x00000000)
SB Zero,EQ ; Branch if zero