Motorola DSP56305 Manuel d'utilisateur Page 94

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 112
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 93
1 2 ... 89 90 91 92 93 94 95 96 97 98 99 ... 111 112

Commentaires sur ces manuels

Pas de commentaire