SUB Subtract Two Signed Integers Without Saturation

Instruction Type

Single-cycle

 

 

 

 

Delay Slots

0

 

 

 

 

 

See Also

 

ADD, SSUB, SUBC, SUBDP, SUBSP, SUBU, SUB2

Example

 

SUB .L1

A1,A2,A3

 

 

 

 

Before instruction

 

1 cycle after instruction

A1

 

 

 

 

 

 

 

0000 325Ah

 

12810

A1

0000

325Ah

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A2

FFFF FF12h

 

−238

A2

FFFF FF12h

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A3

xxxx xxxxh

 

 

A3

0000

3348h

13128

 

 

 

 

 

 

 

 

3-252

Instruction Set

SPRU733

Page 312
Image 312
Texas Instruments TMS320C67X/C67X+ DSP manual ADD, SSUB, SUBC, SUBDP, SUBSP, SUBU, SUB2