Texas Instruments TMS320C2XX User Manual

Page 175

Advertising
background image

ABS

Absolute Value of Accumulator

7-22

Example 1

ABS

Before Instruction

After Instruction

ACC

X

1234h

ACC

0

1234h

C

C

Example 2

ABS

Before Instruction

After Instruction

ACC

X

0FFFFFFFFh

ACC

0

1h

C

C

Example 3

ABS

;(OVM = 1)

Before Instruction

After Instruction

ACC

X

80000000h

ACC

0

7FFFFFFFh

C

C

X

1

OV

OV

Example 4

ABS

;(OVM = 0)

Before Instruction

After Instruction

ACC

X

80000000h

ACC

0

80000000h

C

C

X

1

OV

OV

Advertising