Sadd – Texas Instruments TMS320C67X/C67X+ DSP User Manual

Page 267

Advertising
background image

Add Two Signed Integers With Saturation

SADD

3-207

Instruction Set

SPRU733

Example 3

SADD .L1X

B2,A5:A4,A7:A6

Before instruction

1 cycle after instruction

A5:A4 0000 0000h

7C83 39B1h

1922644401

A5:A4 0000 0000h

7C83 39B1h

A7:A6 xxxx xxxxh

xxxx xxxxh

A7:A6 0000 0000h

8DAD 7953h

2376956243

B2 112A 3FA2h

287981474

B2 112A 3FA2h

CSR 0001 0100h

CSR 0001 0100h

2 cycles after instruction

A5:A4 0000 0000h

7C83 39B1h

A7:A6 0000 0000h

83C3 7953h

B2 112A 3FA2h

CSR 0001 0100h

Not saturated

Signed 40-bit (long) integer

Advertising