Add Two Signed Integers Without Saturation ADD

Example 1

ADD .L2X

A1,B1,B2

Before instruction

1 cycle after instruction

A1

B1

B2

0000 325Ah

FFFFFF12h xxxx xxxxh

12890

A1

−238

B1

 

B2

0000 325Ah

FFFFFF12h

0000 316Ch

12652

Example 2

ADD .L1

A1,A3:A2,A5:A4

Before instruction

1 cycle after instruction

A1

0000

325Ah

12890

 

A1

 

 

 

 

−228§

 

 

 

 

 

 

A3:A2

0000

00FFh

FFFF FF12h

A3:A2

 

 

 

 

0§

 

A5:A4

0000

0000h

0000 0000h

A5:A4

§Signed 40-bit (long) integer

0000

325Ah

 

 

 

 

 

0000 00FFh

FFFF FF12h

 

 

 

 

 

 

0000

0000h

0000 316Ch

 

 

 

12652§

Example 3

ADD

.L1

−13,A1,A6

Before instruction

 

1 cycle after instruction

A1

A6

0000 325Ah

xxxx xxxxh

12890

A1

 

A6

0000 325Ah

0000 324Dh

12877

Example 4

ADD

.D1

A1,26,A6

Before instruction

 

1 cycle after instruction

A1

A6

0000 325Ah

xxxx xxxxh

12890

A1

 

A6

0000 325Ah

0000 3274h

12916

SPRU733

Instruction Set

3-47

Page 107
Image 107
Texas Instruments TMS320C67X/C67X+ DSP manual Add Two Signed Integers Without Saturation ADD