Integer Addition With Saturation to Result Size
SADD
3-103
TMS320C62x/C67x Fixed-Point Instruction Set
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
CSR
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