beautypg.com

Texas Instruments TMS320C2XX User Manual

Page 254

background image

Load TREG and Subtract Previous Product

LTS

7-101

Assembly Language Instructions

Cycles for a Repeat (RPT) Execution of an LTS 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

LTS

DAT36

;(DP = 6: addresses 0300h–037Fh,

;PM = 0: no shift of product)

Before Instruction

After Instruction

Data Memory

Data Memory

324h

62h

324h

62h

TREG

3h

TREG

62h

PREG

0Fh

PREG

0Fh

ACC

X

05h

ACC

0

0FFFFFFF6h

C

C

Example 2

LTS

*,AR2

;(PM = 0)

Before Instruction

After Instruction

ARP

1

ARP

2

AR1

324h

AR1

324h

324h

62h

324h

62h

TREG

3h

TREG

62h

PREG

0Fh

PREG

0Fh

ACC

X

05h

ACC

0

0FFFFFFF6h

C

C