Motorola DSP96002 User Manual page 597

32-bit digital signal processor
Table of Contents

Advertisement

; Switch endpoints if necessary
_inc_x
ftst
ftfr.s d4,d6
ftfr.s d5,d7
; Fix x0 and dx
int
int
neg
jeq
; Calculate dy/dx
fseedd d2,d4
fmpy.s d2,d4,d5
fmpy
fmpy.s d5,d2,d5
fmpy
fmpy.s d0,d3,d0
; Draw first point
int
jsr
; d0 = dy/dx
do
fadd.x d0,d2
inc
int
jsr
_end_x
rts
_draw1_x
int d7
jsr
rts
Performance:
Trivial case: (single point) 16
Other cases:
B-78
d2
d6
d1
d1
d0,d4,d0 fsub.s d5,d2 d2.s,d3.s
d0,d4,d0 fsub.s d5,d3
d7
_draw_point
d1 = dx
d6 = x0
d1.l,_end_x
d6
d7
_draw_point
_draw_point
cycles
25 + 3n cycles
DSP96002 USER'S MANUAL
d3.s,d0.s
fflt
fflt
d2.s,d1.s
iflt
_draw1_x
d9.s,d2.s
d2.s,d4.s
d7.s,d2.s
application dependent
d7 = y0
d2.s,d7.s
application dependent
application dependent
1
1
1
1
1
1
1
1
1
1
1
1
2
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
3
1
1
1
1
1
1
2
2
1
1
2
2
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents