CoABS PROGRAMMING MANUAL
148/197
CoABS Absolute Value
Group 40-bit Arithmetic Instructions
Syntax CoABS
Operation (ACC) <-- Abs( ACC )
Syntax CoABS op1, op2
Operation (ACC) <-- Abs( (op2)\(op1) )
Data Types ACCUMULATOR, DOUBLE WORD
Result 40-bit signed value
Description Compute the absolute value of the Accumulator if no operands are
specified or the absolute value of a 40-bit source operand and load
the result in the Accumulator. The 40-bit operand results from the
concatenation of the two source operands op1 (LSW) and op2 (MSW)
which is then sign-extended. This instruction is not repeatable
MAC Flags .
Addressing Modes
N Z C SV E SL
* * 0 - * *
N Set if the most significant bit of the result is set. Cleared other-
wise.
Z Set if the result equals zero. Cleared otherwise.
C Always cleared.
SV Not affected.
E Set if the MAE is used. Cleared otherwise.
SL Set if the contents of the ACC is automatically saturated. Not
affected otherwise.
Mnemonic Rep Format Bytes
CoABS No A3 00 1A 00 4
CoABS Rw
n
, Rw
m
No A3 nm CA 00 4
CoABS [IDX
i
], [Rw
m
No 93 Xm CA 0:0qqq 4
CoABS Rw
n
, [Rw
m
No 83 nm CA 0:0qqq 4
2