Motorola DSP96002 User Manual
Page 623
B-104
DSP96002 USER’S MANUAL
MOTOROLA
move y:(r1)-,d3.s ;Wn 1 1
fadd.s d3,d5 x:(r1)-,d3.s d5.s,d0.s ;Xn 1 1
fsub.s d3,d5 ; 1 1
fseedd d5,d4 ; 1 1
fmpy.s d5,d4,d5 d9.s,d2.s ; 1 1
fmpy d0,d4,d0 fsub.s d5,d2 d2.s,d3.s ; 1 1
fmpy.s d5,d2,d5 d2.s,d4.s ; 1 1
fmpy d0,d4,d0 fsub.s d5,d3 ; 1 1
fmpy.s d0,d3,d0 ; 1 1
fcmp d7,d0 ; 1 1
ftfr.s d0,d7 ffgt ; 1 1
rts ; 2 2
; XOld = -WOld boundary
_clip2_xon
move (r1)- ; 1 1
move y:(r1)-,d3.s ;Wn 1 1
fsub.s d3,d6 x:(r1)+n1,d3.s d6.s,d0.s ;Xn 1 1
fsub.s d3,d6 ; 1 1
fseedd d6,d4 ; 1 1
fmpy.s d6,d4,d6 d9.s,d2.s ; 1 1
fmpy d0,d4,d0 fsub.s d6,d2 d2.s,d3.s ; 1 1
fmpy.s d6,d2,d6 d2.s,d4.s ; 1 1
fmpy d0,d4,d0 fsub.s d6,d3 ; 1 1
fmpy.s d0,d3,d0 ; 1 1
fcmp d7,d0 ; 1 1
ftfr.s d0,d7 ffgt ; 1 1
rts ; 2 2
; YOld = WOld boundary
_clip2_yop
move (r1)- ; 1 1
move y:(r1),d3.s ;Wn 1 1
fadd.s d3,d5 x:(r1)+,d3.s d5.s,d0.s ;Yn 1 1