Freescale Semiconductor SC140 specifications Lpmark Rule L.C.3 + L.C.5

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 307
Image 307

LPMARK Rules

Example 7-98. COF Instructions at LPB of a Long Loop

dosetup1 label1 doen1 #n2 move.l #mem_l1,r1 move.l #mem_l2,r0

label1 inc d1

{lpmarkb set}

;not allowed

jsr

r1

add

d1,d2,d3

 

 

move.w d3,(r0)

LPMARK Rule L.C.3 + L.C.5

A Bc or Jc instruction is not allowed at LPA-1 or LPB-1 of a loop.

Example 7-99. Bc/Jc at the Start of a Loop

cmpgt d4,d3 nop

iff doensh3 #count2

bt _dest

;not allowed

inc d2

{lpmarka set}

...

 

_dest inc d2

 

dosetup1 label7 move.w #0,d1 doen1 #5 move.w #10,d2

label7 inc d1

;not allowed

bf label6

inc d2

{lpmarkb set}

inc

d3

 

inc

d4

 

SC140 DSP Core Reference Manual

7-57

Page 307
Image 307
Freescale Semiconductor SC140 Lpmark Rule L.C.3 + L.C.5, Example 7-98. COF Instructions at LPB of a Long Loop