Motorola DSP96002 User Manual
Page 616
MOTOROLA
DSP96002 USER’S MANUAL
B-97
;---------------------------------------------------------
;
; Double point clipping routine
;
;---------------------------------------------------------
; Dispatch to old point clipping routines
_r_clip2
move d7.l,x:(r6) y:(r1)+,d1.l ;Cnt r1+ 1 1
move y:(r1)-,d1.s ; Wo 1 1
move x:(r1)+,d5.s ;Xo 1 1
move n0,d7.s ; 1 1
fsub.s d1,d5 d5.s,d6.s ; 1 1
fjsgt _clip2_xop ; 2 2
fadd.s d1,d6 x:(r1)-,d5.s ;Yo 1 1
fjslt _clip2_xon ; 2 2
fsub.s d1,d5 d5.s,d6.s ; 1 1
fjsgt _clip2_yop ; 2 2
fadd.s d1,d6 y:(r1)+n1,d5.s ;Zo 1 1
fjslt _clip2_yon ; 2 2
fsub.s d1,d5 d5.s,d6.s ; 1 1
fjsgt _clip2_zop ; 2 2
ftst d6 x:(r1)+,d5.s ;Xn 1 1
fjslt _clip2_zon ; 2 2
move d7.s,y:(r6) ; to 1 1
; Dispatch to new point clipping routines
move y:(r1),d1.s ; Wn 1 1
move d8.s,d7.s ; tn 1 1
fsub.s d1,d5 d5.s,d6.s ; 1 1
fjsgt _clip2_xnp ; 2 2
fadd.s d1,d6 x:(r1)-,d5.s ;Yn 1 1
fjslt _clip2_xnn ; 2 2
fsub.s d1,d5 d5.s,d6.s ; 1 1