Absolute Value - Analog Devices adsp-2100 Manual

Adsp-2100 family programmable single-chip microprocessors
Table of Contents

Advertisement

AMF = 11011 for NOT xop operation.
Z:
Destination register
Xop:
X operand
Syntax:
[ IF cond ]
Permissible xops
AX0
MR2
AX1
MR1
AR
MR0
SR1
SR0
Example:
IF NEG AF = ABS AX0 ;
Description:
Test the optional condition and, if true, then take the
absolute value of the source operand and store in the destination location.
If the condition is not true then perform a no-operation. Omitting the
condition performs the absolute value operation unconditionally. The
source operand is contained in the data register specified in the
instruction.
Status Generated:
ASTAT:
7
6
SS MV AQ AS
-
-
AZ
Set if the result equals zero. Cleared otherwise.
AN
Set if xop is H#8000. Cleared otherwise.
AV
Set if xop is H#8000. Cleared otherwise.
AC
Always cleared.
AS
Set if the source operand is negative. Cleared otherwise.
Instruction Format:
Conditional ALU/MAC Operation, Instruction Type 9:
23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0
0
1
0
0
AMF specifies the ALU or MAC operation. In this case,
AMF = 11111 for ABS xop operation.
Yop:
COND: condition
AR
AF
Permissible conds (see Table 15.9)
EQ LE
NE NEG
GT POS
GE AV
LT NOT AV
5
4
3
AC AV AN AZ
-
*
0
Z
AMF

ABSOLUTE VALUE

Y operand
= ABS xop ;
AC
NOT AC
MV
NOT MV
NOT CE
2
1
0
*
*
*
0 0
Xop
0 0 0 0
ALU
15
COND
15 – 35

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the adsp-2100 and is the answer not in the manual?

Questions and answers

Table of Contents