Motorola DSP56305 Manuale Utente Pagina 94

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 112
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 93
Compact Opcode Use
Special Instructions
MOTOROLA Optimizing DSP56300/DSP56600 Applications 7-9
7.4.3 Clearing Registers
It is often needed to clear a certain register or accumulator in the
code. Optimization can be accomplished in this area, also. Example:
move r1,r0
move #0,a
move y0,a0
This example can be optimized by using the CLR instructions and
by combining a move instruction with the CLR to a parallel opcode:
clr a r1,r0
move y0,a0
Another example:
add x0,a
clr b
move y0,b0
This can be optimized by:
add x0,a #0,b
move y0,b0
Vedere la pagina 93
1 2 ... 89 90 91 92 93 94 95 96 97 98 99 ... 111 112

Commenti su questo manuale

Nessun commento