Cof instructions at lpb of a long loop -57, Bc/jc at the start of a loop -57, Lpmark rule l.c.3 + l.c.5 – Freescale Semiconductor StarCore SC140 User Manual

Page 307

Advertising
background image

LPMARK Rules

SC140 DSP Core Reference Manual

7-57

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

jsr r1

{lpmarkb set}

;not allowed

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

bf label6

;not allowed

inc d2

{lpmarkb set}

inc d3
inc d4

Advertising