LDW Load Word From Memory With a 5-Bit Unsigned Constant Offset or Register Offset

Example 1

Before LDW

B1

0000

0000h

 

 

 

 

 

 

A10

0000

0100h

 

 

 

LDW .D1

*A10,B1

1 cycle after LDW

B1 0000 0000h

A10 0000 0100h

5 cycles after LDW

B1 21F3 1996h

A10 0000 0100h

mem 100h

21F3 1996h

mem 100h

21F3 1996h

 

 

 

 

mem 100h 21F3 1996h

Example 2

Before LDW

A4 0000 0100h

A6 1234 4321h AMR 0000 0000h

LDW .D1

*A4++[1],A6

1 cycle after LDW

A4 0000 0104h

A6 1234 4321h

AMR 0000 0000h

5 cycles after LDW

A4 0000 0104h

A6 0798 F25Ah AMR 0000 0000h

mem

100h

0798

F25Ah

mem

100h

0798

F25Ah

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mem

104h

1970

19F3h

mem

104h

1970

19F3h

 

 

 

 

 

 

 

 

mem

100h

0798

F25Ah

 

 

 

 

 

 

 

 

mem

104h

1970

19F3h

 

 

 

 

Example 3

Before LDW

A4

0000

0100h

 

 

 

A6 1234 5678h AMR 0000 0000h

LDW .D1

*++A4[1],A6

1 cycle after LDW

A4 0000 0104h

A6 1234 5678h

0000 0000h

5 cycles after LDW

A4 0000 0104h

A6 0217 6991h AMR 0000 0000h

mem 104h

0217 6991h

mem 104h

0217 6991h

 

 

 

 

mem 104h

0217 6991h

 

 

3-138

Instruction Set

SPRU733

Page 198
Image 198
Texas Instruments TMS320C67X/C67X+ DSP manual Before LDW, Cycle after LDW