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
move
move
This example can be optimized by using the CLR instructions and
by combining a move instruction with the CLR to a parallel opcode:
clr
move
Another example:
add
clr
move
This can be optimized by:
add
move
MOTOROLA
Optimizing DSP56300/DSP56600 Applications
r1,r0
#0,a
y0,a0
a
r1,r0
y0,a0
x0,a
b
y0,b0
x0,a
#0,b
y0,b0
Compact Opcode Use
Special Instructions
7-9