Loop cof destination in the same loop -38, Rule l.c.7 – Freescale Semiconductor StarCore SC140 User Manual
Page 288

7-38
SC140 DSP Core Reference Manual
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
skipls label2
;allowed
loopstart3
label1 inc d1
inc d2
inc d3
inc d4
inc d5
loopend3
label2 nop
dosetup2 label1
doen2 #6
nop
loopstart2
label1 cont next
;not allowed
nop
inc d0
dosetup3 label2
doen3 #5
loopstart3
label2 inc d1
next
inc d2
inc d3
inc d4
inc d5
loopend3
nop
loopend2
nop