Lact – Texas Instruments TMS320C2XX User Manual

Page 232

Advertising
background image

Load Accumulator With Shift Specified by TREG

LACT

7-79

Assembly Language Instructions

Cycles for a Single LACT Instruction

Program

Operand

ROM

DARAM

SARAM

External

DARAM

1

1

1

1+p

SARAM

1

1

1, 2

1+p

External

1+d

1+d

1+d

2+d+p

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

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

LACT

1

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

;SXM = 0)

Before Instruction

After Instruction

Data Memory

Data Memory

301h

1376h

301h

1376h

TREG

14h

TREG

14h

ACC

X

98F7EC83h

ACC

X

13760h

C

C

Example 2

LACT

*–,AR3

;(SXM = 1)

Before Instruction

After Instruction

ARP

1

ARP

3

AR1

310h

AR1

30Fh

Data Memory

Data Memory

310h

0FF00h

310h

0FF00h

TREG

11h

TREG

11h

ACC

X

098F7EC83h

ACC

X

0FFFFFE00h

C

C

Cycles

Advertising