Motorola DSP96002 User Manual page 622

32-bit digital signal processor
Table of Contents

Advertisement

fmpy.s d2,d4,d3
fmpy.s d1,d4,d1
fmpy
fmpy.s d6,d7,d3
fmpy
fmpy.s d4,d7,d2
move
rts
; Clip at z = 0 boundary
_clip1_zn
move
fmpy.s d2,d6,d2
fmpy.s d1,d4,d1
fmpy
fmpy.s d6,d7,d0
fmpy
fmpy.s d4,d5,d5
rts
;---------------------------------------------------------
;
;
;
;---------------------------------------------------------
; XOld = WOld boundary
_clip2_xop
move
MOTOROLA
fsub.s d6,d4 x:(r1)+,d6.s
d0,d4,d2 fsub.s d3,d1
d4,d5,d3 fsub.s d3,d2 x:(r1),d4.s
fsub.s d2,d3 d1.s,d6.s
d0,d4,d2 fsub.s d2,d1
d6,d7,d3 fsub.s d0,d2
fsub.s d3,d5 n0,d6.s
Double point clipping routines
DSP96002 USER'S MANUAL
d2.s,d7.s
y:(r1),d6.s
d2.s,d0.s
d3.s,d5.s
y:(r1)-,d2.s ;W1
y:(r1),d4.s
x:(r1)+,d7.s
x:(r1),d7.s
d2.s,d0.s
(r1)+n1
;Z1
1
1
;X1
1
1
;
1
1
;
1
1
;
1
1
;Y1
1
1
;
1
1
;
1
1
;
1
1
;
2
2
1
1
;Z1
1
1
;X1
1
1
;
1
1
;Y1
1
1
;
1
1
;
1
1
;
1
1
;
2
2
;
1
1
B-103

Advertisement

Table of Contents
loading

Table of Contents