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
Summary of Contents for SC140 DSP Core
Page 12: ...xii SC140 DSP Core Reference Manual ...
Page 18: ...xviii SC140 DSP Core Reference Manual ...
Page 32: ...1 6 SC140 DSP Core Reference Manual Core Architecture Features ...
Page 180: ...4 70 SC140 DSP Core Reference Manual Trace Unit Registers ...
Page 250: ...6 70 SC140 DSP Core Reference Manual Programming Rules ...
Page 314: ...7 64 SC140 DSP Core Reference Manual NOP Definition ...
Page 463: ...DI SC140 DSP Core Reference Manual A 149 15 8 7 0 DI 1 1 4 1 0 0 1 1 1 1 1 0 1 1 1 1 1 0 1 ...
Page 478: ...A 164 SC140 DSP Core Reference Manual EI ...
Page 618: ...A 304 SC140 DSP Core Reference Manual MOVES 4F s15 sssssssssssssss Signed 15 bit offset ...
Page 638: ...A 324 SC140 DSP Core Reference Manual MPYR ...
Page 746: ...A 432 SC140 DSP Core Reference Manual ZXTA x ...
Page 758: ...I 10 Index ...
Page 759: ...SC140 DSP Core Reference Manual i ...
Page 760: ......