Static Programming Rules

Rule L.C.7

A loop COF instruction (BREAK, CONT, CONTD, or SKIPLS) in an enabled loop n cannot have a COF destination in the same loop n.

Example 7-69. Loop COF Destination in the Same Loop

dosetup3 label1 doen3 #5 loopstart3

label1 inc d1 inc d2

break label2;not allowed inc d3

inc d4 label2 inc d5

loopend3

 

dosetup3 label1

 

 

doen3 d0

 

 

nop

;allowed

 

skipls label2

label1

loopstart3

 

inc d1

 

 

inc d2

 

 

inc d3

 

 

inc d4

 

 

inc d5

 

label2

loopend3

 

nop

 

 

dosetup2 label1

 

 

doen2 #6

 

 

nop

 

label1

loopstart2

;not allowed

cont next

 

nop

 

 

inc d0

 

 

dosetup3 label2

 

 

doen3 #5

 

label2

loopstart3

 

inc d1

 

next

inc d2

 

 

inc d3

 

 

inc d4

 

 

inc d5

 

 

loopend3

 

 

nop

 

 

loopend2

 

 

nop

 

7-38

SC140 DSP Core Reference Manual

Page 288
Image 288
Freescale Semiconductor SC140 specifications Rule L.C.7, Example 7-69. Loop COF Destination in the Same Loop