Analog Devices ADSP-2106x SHARC User Manual page 517

Table of Contents

Advertisement

Compute Operations
Syntax:
Rn = ABS Rx
Function:
Determines the absolute value of the fixed-point operand in Rx. The result
is placed in the fixed-point field in register Rn. The floating-point
extension field in Rn is set to all 0s. ABS of the minimum negative number
(0x8000 0000) causes an overflow. In saturation mode (the ALU saturation
mode bit in MODE1 set), overflow causes the maximum positive number
(0x7FFF FFFF) to be returned.
Status flags:
AZ
Is set if the fixed-point output is all 0s, otherwise cleared
AU Is cleared
AN Is set if the most significant output bit is 1, otherwise cleared
AV Is set if the XOR of the carries of the two most significant adder
stages is 1, otherwise cleared
AC Is set if the carry from the most significant adder stage is 1,
otherwise cleared
AS
Is set if the fixed-point operand in Rx is negative, otherwise cleared
AI
Is cleared
www.BDTIC.com/ADI
ALU Fixed-Point
B
Rn = ABS Rx
B – 15

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADSP-2106x SHARC and is the answer not in the manual?

Questions and answers

Table of Contents