POP ACC
6-267
POP ACC Pop Top of Stack to Accumulator
SYNTAX OPTIONS OPCODE OBJMODE RPT CYC
POP ACC 0001 1110 1011 1110 X − 1
Operands ACC Accumulator
Description Predecrement SP by 2. Load ACC with the 32-bit value pointed to by SP:
SP −= 2;
ACC = [SP];
Flags and
Modes
N The load to ACC is tested for a negative condition. Bit-31 of the ACC register
is the sign bit, 0 for positive, 1 for negative. The negative flag bit is set if the
operation on the ACC register generates a negative value, otherwise it is
cleared.
Z The load to ACC is tested for a zero condition. The bit is set if the result of the
operation on the ACC register generates a 0 value, otherwise it is cleared
Repeat This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.