Motorola DSP96002 User Manual
Page 526
MOTOROLA
DSP96002 USER’S MANUAL
B-7
Program ICycles
Words
move #aaddr+1,r0 1 1
move #3,n0 1 1
move #baddr,r4 1 1
move #caddr,r1 1 1
move #daddr-1,r5 1 1
move x:(r0)-,d4.s y:(r4)+,d6.s 1 1
fclr d2 x:(r0)+n0,d5.s y:(r5),d0.s 1 1
do #n,end 2 3
fmpy d5,d6,d2 fadd.s d2,d0 x:(r1)+,d1.s y:(r4)+,d7.s 1 1
fmpy d4,d7,d2 fadd.s d2,d1 x:(r1)+,d0.s d0.s,y:(r5)+ 1 1
fmpy d4,d6,d2 fsub.s d2,d1 x:(r0)-,d4.s y:(r4)+,d6.s 1 1
fmpy d5,d7,d2 fadd.s d2,d0 x:(r0)+n0,d5.s d1.s,y:(r5)+ 1 1
end
fadd.s d2,d0 1 1
move d0.s,y:(r5)+ 1 1
-------------------
Totals
: 15 4N+12
(13 4N+10)
or
d5 = ar d4 = br d6 = bi d7 = ai
X Memory Organization Y Memory Organization
.
.
dr2
di2
R5
→
dr1 DADDR R2
→
di1 DADDR
.
.
.
.
cr2
ci2
R1
→
cr1 CADDR R6
→
ci1 CADDR
.
.
.
.
br2
bi2
R4
→
br1 BADDR R4
→
bi1 BADDR
.
.
.
.
ar2
ai2
R0
→
ar1 AADDR R0
→
ai1 AADDR
Program
ICycles
Words