Freescale-semiconductor StarCore SC140 Manual de usuario Pagina 289

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 760
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 288
Static Programming Rules
SC140 DSP Core Reference Manual 7-39
Rule L.C.9
A loop COF instruction (BREAK, CONT, CONTD, or SKIPLS) cannot have a COF destination that is one
VLES before two consecutive VLES that are both LA of long loops.
Example 7-70. Loop COF at End of Nested Long Loops
doen0 #5
...
loopstart0
...
doen1 #10
...
loopstart1
...
doen2 d0
...
skipls _dest ; not allowed
loopstart2
...
loopend2
...
_dest
nop
nop ; last address of long loop 1
loopend1
nop ; last address of long loop 0
loopend0
Rule L.C.10
A BSR, BSRD, JSR, or JSRD instruction cannot have a COF destination that is LA-2 of a long loop or SA
of a short loop.
Example 7-71. Subroutine Call to End of Loops
dosetup0 label1
doen0 d1
nop
nop
loopstart0
label1 nop
nop
jsr label2 ;not allowed
nop
nop
inca r1
label2 inca r7 ;LA-2
add d1,d2,d3 ;LA-1
move.w d3,(r0) ;LA
loopend0
Vista de pagina 288
1 2 ... 284 285 286 287 288 289 290 291 292 293 294 ... 759 760

Comentarios a estos manuales

Sin comentarios