SAT64 ACC:P
6-314
SAT64 ACC:P Saturate 64-bit Value ACC:P
SYNTAX OPTIONS OPCODE OBJMODE RPT CYC
SAT64 ACC:P 0101 0110 0011 1110 1 − 1
Operands ACC:P Accumulator register (ACC) and product register (P)
Description Saturate the 64-bit content of the combined ACC:P registers to reflect the net
overflow represented in the overflow counter (OVC):
if(OVC > 0)
ACC:P = 0x7FFF FFFF FFFF FFFF;
V=1;
if(OVC < 0)
ACC:P = 0x8000 0000 0000 0000;
V=1;
if(OVC = 0)
ACC:P = unchaged;
OVC = 0;
Flags and
Modes
N
After the shift, if bit 31 of the ACC register is 1 then ACC:P is negative
and the N bit is set; otherwise N is cleared.
Z After the operation, the Z flag is set if the combined 64-bit value of the ACC:P
is zero; otherwise, Z is cleared.
C
The C bit is cleared.
V
At the start of the operation, if (OVC = 0) then V is cleared; otherwise, V
is set.
OVC
If (OVC = 0), then no saturation takes place:
ACC:P is unchanged.
If(OVC > 0), then saturate ACC:P the maximum positive value:
ACC:P = 0x7FFF FFFF FFFF FFFF
If( OVC < 0), then saturate ACC:P to the maximum negative value:
ACC = 0x8000 0000 or ACC:P = 0x8000 0000 0000 0000
At the end of the operation, OVC 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.