Absolute Value With Saturation ABS

Instruction Type

Single-cycle

 

Delay Slots

0

 

See Also

ABSDP, ABSSP

Example 1

ABS .L1

A1,A5

 

Before instruction

 

A1

 

 

−2147463619

A1

8000

4E3Dh

 

 

 

 

 

 

 

 

 

 

A5

xxxx

xxxxh

 

A5

 

 

 

 

 

1 cycle after instruction

8000

4E3Dh

−2147463619

 

 

 

 

 

 

7FFF

B1C3h

2147463619

 

 

 

Example 2

ABS .L1

A1,A5

Before instruction

1 cycle after instruction

A1 3FF6 0010h

A5 xxxx xxxxh

1073086480

A1

3FF6

0010h

 

 

 

 

 

 

 

 

 

A5

3FF6

0010h

 

 

 

 

1073086480

1073086480

SPRU733

Instruction Set

3-39

Page 99
Image 99
Texas Instruments TMS320C67X/C67X+ DSP manual ABSDP, Abssp, Before instruction, Cycle after instruction