Motorola DSP56305 Manual do Utilizador Página 94

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 112
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 93
1 2 ... 89 90 91 92 93 94 95 96 97 98 99 ... 111 112

Comentários a estes Manuais

Sem comentários