Freescale Semiconductor SC140 specifications Loop COF Rules, Lpmark Rule L.C.2

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 306
Image 306

LPMARK Rules

Example 7-97. Active LCn Read at the Start of a Loop

doensh0 #$10

;not allowed

push

lc0

inc

d0

{lpmarka set}

doensh0 #$10

;allowed

push

lc1

inc

d0

{lpmarka set}

move.w

#count2,d6

dosetup0 label2

doen0

 

d6

 

move.w

#1,d1

 

move.w

#2,d2

 

move.w

#3,d3

 

move.w #4,d4

 

label2 inc d1

 

;not allowed

move.l lc0,d0

inc d2

 

{lpmarkb set}

inc d3

 

 

inc d4

 

 

move.w

#count2,d6

dosetup0 label2

doen0

 

d6

 

move.w

#1,d1

 

move.w

#2,d2

 

move.w

#3,d3

 

move.w #4,d4

 

label2 inc d1

 

;allowed

move.l lc1,d0

inc d2

 

{lpmarkb set}

inc d3

 

 

inc d4

 

 

7.8.3.5 Loop COF Rules

LPMARK Rule L.C.2

COF instructions are not allowed at LPB of a long loop.

7-56

SC140 DSP Core Reference Manual

Page 306
Image 306
Freescale Semiconductor SC140 Loop COF Rules, Lpmark Rule L.C.2, COF instructions are not allowed at LPB of a long loop