Add Two Signed Integers With Saturation SADD

Example 3

 

SADD .L1X

B2,A5:A4,A7:A6

 

 

 

 

 

Before instruction

 

 

 

1 cycle after instruction

A5:A4

 

 

 

 

1922644401

 

 

 

 

 

0000

0000h

7C83

39B1h

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

SPRU733

Instruction Set

3-207

Page 267
Image 267
Texas Instruments TMS320C67X/C67X+ DSP manual Add Two Signed Integers With Saturation Sadd