Subs – Texas Instruments TMS320C2XX User Manual

Page 336

Advertising
background image

Subtract From Accumulator With Sign Extension Suppressed

SUBS

7-183

Assembly Language Instructions

Cycles for a Repeat (RPT) Execution of an SUBS Instruction

Program

Operand

ROM

DARAM

SARAM

External

DARAM

n

n

n

n+p

SARAM

n

n

n, n+1

n+p

External

n+nd

n+nd

n+nd

n+1+p+nd

† If the operand and the code are in the same SARAM block

Example 1

SUBS

DAT2

;(DP = 16, SXM = 1)

Before Instruction

After Instruction

Data Memory

Data Memory

802h

0F003h

802h

0F003h

ACC

X

0F105h

ACC

1

102h

C

C

Example 2

SUBS

*

;(SXM = 1)

Before Instruction

After Instruction

ARP

0

ARP

0

AR0

310h

AR0

310h

Data Memory

Data Memory

310h

0F003h

310h

0F003h

ACC

X

0FFFF105h

ACC

1

0FFF0102h

C

C

Advertising