
Static Programming Rules
SC140 DSP Core Reference Manual 7-35
Example 7-62. SAn Write at the End of Long Loop n
loopstart0
...
doen1 #5
...
loopstart1
...
dosetup0 _addr ;not allowed
loopend1
nop
loopend0
Rule L.D.7
At least one VLES is required between an instruction that writes any SAn register and a CONT/CONTD
instruction.
Example 7-63. SAn Write to CONT/D Instruction
doen1 #5
dosetup1 label1
loopstart1
label1 cont label2 ;not allowed
inc d0
move.w #$23,d2
move.w #$beef,d3
loopend1
label2 inc d1
Rule L.D.8
A MOVE-like instruction that reads a LCn register is not allowed at the (LA-3), (LA-2), (LA-1), and LA of
the same long loop.
Rule L.D.9
At least one VLES is required between a MOVE-like instruction that reads a LCn register and SA of the
same short loop n.
Example 7-64. LCn Read at the Start of Short Loop n
doensh0 #$10
push lc0 ;not allowed
loopstart0
inc d0
loopend0
doensh0 #$10
push lc1 ;allowed
loopstart0
inc d0
loopend0
Kommentare zu diesen Handbüchern