ADDU Add Two Unsigned Integers Without Saturation

Example 1

ADDU .L1

A1,A2,A5:A4

Before instruction

1 cycle after instruction

A1

0000

325Ah

 

 

 

 

A2

FFFF FF12h

 

 

 

 

A5:A4

xxxx xxxxh

 

 

 

Unsigned 32-bit integer

Unsigned 40-bit (long) integer

12890A1

4294967058A2

A5:A4

0000 325Ah

FFFF FF12h

0000 0001h

0000 316Ch

 

 

4294979948

Example 2

 

ADDU .L1

A1,A3:A2,A5:A4

 

 

 

 

 

Before instruction

 

 

1 cycle after instruction

A1

 

 

 

 

 

 

 

 

0000

325Ah

12890

 

A1

0000

325Ah

 

 

 

 

 

1099511627538

 

 

 

 

 

 

 

 

 

 

A3:A2

0000

00FFh

FFFF FF12h

A3:A2

0000 00FFh

FFFF FF12h

 

 

 

 

 

 

 

 

 

A5:A4

0000

0000h

0000 0000h

0

A5:A4

0000

0000h

0000 316Ch

 

 

 

 

 

 

 

 

 

Unsigned 32-bit integer

Unsigned 40-bit (long) integer

12652

3-64

Instruction Set

SPRU733

Page 124
Image 124
Texas Instruments TMS320C67X/C67X+ DSP manual Addu Add Two Unsigned Integers Without Saturation