
2-12
Optimizing DSP56300/DSP56600 Applications
MOTOROLA
Data Operations
Double precision arithmetic
The (U) means an unsigned operand, and the (S) a signed operand.
The following four instructions perform the operation in full:
;48x48 bit multiplication with 48 bit result.
;============================================
;first operand - X1:X0
;second operand -Y1:y0
;result is in accumulator A.
mpyuu
x0,y0,a
;
x0(u) * y0 (u) -> a
dmacsu y1,x0,a
;a>>24 +y1(s) * x0 (u) -> a
macsu
x1,y0,a
;a +
x1(s) * y0 (u) -> a
dmacss x1,y1,a
;a>>24 +x1(s) * y1 (s) -> a
Figure 2-2 48
×
48-bit Multiplication with 48 Bits of the Result Kept.
0
23
0
23
0
23
0
23
×
0
47
0
47
0
47
0
47
0
47
X0
X1
Y0
Y1
X0(u) • Y0(u)
Y1(s) • X0(u)
X1(s) • Y0(u)
X1(s) • Y1(s)
+
Result accumulator
AA0832
Содержание DSP56300
Страница 49: ...3 20 Optimizing DSP56300 DSP56600 Applications MOTOROLA Program Control Using Fast Interrupts ...
Страница 95: ...7 10 Optimizing DSP56300 DSP56600 Applications MOTOROLA Compact Opcode Use Special Instructions ...
Страница 99: ...A 4 Optimizing DSP56300 DSP56600 Applications MOTOROLA Saving Power Disabling Functional Blocks ...
Страница 103: ...B 4 Optimizing DSP56300 DSP56600 Applications MOTOROLA Debug and Test Support Address Tracing ...