Texas Instruments TMS320C2XX User Manual

Page 482

Advertising
background image

Instruction Set Comparison Table

B-33

TMS320C1x/C2x/C2xx/C5x Instruction Set Comparison

Syntax

Description

5x

2xx

2x

1x

SUB

dma [, shift]

SUB {

ind} [, shift [, next ARP] ]

SUB #

k

SUB #

lk [, shift

2

]

Subtract From Accumulator With Shift

TMS320C1x and TMS320C2x devices: Subtract the
contents of the addressed data-memory location from
the accumulator. If a shift is specified, left shift the
value before subtracting. During shifting, low-order
bits are zero filled, and high-order bits are sign ex-
tended if SXM = 1.

TMS320C2xx and TMS320C5x devices: Subtract the
contents of the addressed data-memory location or an
8- or 16-bit constant from the accumulator. If a shift is
specified, left shift the data before subtracting. During
shifting, low-order bits are zero filled, and high-order
bits are sign extended if SXM = 1.

SUBB

dma

SUBB {

ind} [, next ARP]

Subtract From Accumulator With Borrow

Subtract the contents of the addressed data-memory
location and the value of the carry bit from the accumu-
lator. The carry bit is affected in the normal manner.

SUBC

dma

SUBC {

ind} [, next ARP]

Conditional Subtract

Perform conditional subtraction. SUBC can be used
for division.

SUBH

dma

SUBH {

ind} [, next ARP]

Subtract From High Accumulator

Subtract the contents of the addressed data-memory
location from the 16 MSBs of the accumulator. The 16
LSBs of the accumulator are not affected.

SUBK #

k

Subtract From Accumulator Short Immediate

Subtract an 8-bit immediate value from the accumula-
tor. The data is treated as an 8-bit positive number;
sign extension is suppressed.

SUBS

dma

SUBS {

ind} [, next ARP]

Subtract From Low Accumulator With Sign
Extension Suppressed

Subtract the contents of the addressed data-memory
location from the accumulator. The data is treated as
a 16-bit unsigned number; sign extension is sup-
pressed.

Advertising