Motorola DSP96002 User Manual
Page 619
B-100
DSP96002 USER’S MANUAL
MOTOROLA
fmpy.s d0,d4,d2 ; 1 1
fmpy.s d2,d1,d2 x:(r4)+,d4.s y:,d6.s ;Ys Yf 1 1
fmpy d5,d4,d3 fadd.s d3,d2 ; 1 1
fmpy.s d3,d1,d3 x:(r6),d7.l ; 1 1
fadd.s d6,d3 x:(r0)+,d0.s d2.s,y:(r5)+ ;X X1 1 1
move d3.s,y:(r5)+ ; Y1 1 1
dec d7 n5,y:(r5)+ ; -1.0 1 1
jne _reject_loop ; 2 2
jmp _end ; 2 2
; Reject double-clipped line
_clip2_reject
move x:(r6),d7.l ; 1 1
move x:(r1)+n1,d0.s y:,d1.s ;Xn Zn 1 1
move d0.s,x:(r1)- d1.s,y: ;Xo Zo 1 1
move x:(r1)+n1,d0.s y:,d1.s ;Yn Wn 1 1
move d0.s,x:(r1)+ d1.s,y: ;Yo Wo 1 1
dec d7 x:(r0)+,d0.s ; 1 1
jne _reject_loop ; 2 2
; Terminate endpoint list and exit
_end
move n5,d0.s ;-1.0 1 1
move (r5)- ; 1 1
move y:(r5),d1.s ; 1 1
fcmp d0,d1 ; 1 1
fjeq _end1 ; 2 2
move (r5)+ ; 1 1
_end1
move #-2.0,d0.s ; 2 2
move d0.s,y:(r5)+ ; 1 1
rts ; 2 2