
7-58 SC140 DSP Core Reference Manual
LPMARK Rules
LPMARK Rule L.C.9
A loop COF instruction (BREAK, CONT, CONTD, or SKIPLS) cannot have a COF destination that is at
LPB of a long loop if immediately followed by LPA.
Example 7-100. Loop COF at End of Nested Long Loops
doen0 #5
...
doen1 #10
...
doen2 d0
nop
skipls _dest ;not allowed
nop
ift break label
nop
nop {lpmarkb set}
nop
nop
...
nop {lpmarkb set}
_dest
nop {lpmarkb set}
label nop {lpmarka set} ;last address of long loop 1
nop ;last address of long loop 0
LPMARK Rule L.C.10
A BSR, BSRD, JSR, or JSRD instruction cannot have a COF destination that is at LPA or LPB of a loop.
Example 7-101. Subroutine Call to End of Loops
dosetup0 label1
doen0 d1
nop
nop
label1 nop
nop
jsr label2 ;not allowed
nop
nop
inca r1
label2 inca r7 {lpmarkb set};LA-2
add d1,d2,d3 ;LA-1
move.w d3,(r0) ;LA
Kommentare zu diesen Handbüchern