Motorola DSP56305 User Manual Page 94

  • Download
  • Add to my manuals
  • Print
  • Page
    / 112
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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
Page view 93
1 2 ... 89 90 91 92 93 94 95 96 97 98 99 ... 111 112

Comments to this Manuals

No comments