Abs absolute value abs – Motorola DSP96002 User Manual
Page 207
MOTOROLA
DSP96002 USER’S MANUAL
A - 19
ABS
Absolute Value
ABS
Instruction Fields:
(u u)
D
d d d
Dn.L
n n n
where nnn = 0-7
Timing:
2 + mv oscillator clock cycles
Memory:
1 + mv program words
DATA BUS MOVE FIELD
10
0100
uu11
1ddd
31
14 13
0
OPTIONAL EFFECTIVE ADDRESS EXTENSION OR IMMEDIATE LONG DATA
Operation:
|-D.L|
→
D.L (parallel data bus move)
Description:
Take the absolute value of the destination operand low portion and store the result in the low portion of D.
Input Operand(s) Precision:
32-bit integer.
Output Operand Precision:
32-bit integer.
CCR Condition Codes:
C
- Not affected.
V
- Set if result overflows. Cleared otherwise.
Z
- Set if result is zero. Cleared otherwise.
N
- Set if result is negative. Cleared otherwise.
I
- Not affected.
LR
- Not affected.
–
R
- Not affected.
A
- Not affected.
ER Status Bits:
Not affected.
IER Flags:
Not affected.
Instruction Format:
ABS D (move syntax - see the MOVE instruction description. )
Assembler Syntax:
ABS D (move syntax - see the MOVE instruction de-
scription. )