beautypg.com

Motorola DSP96002 User Manual

Page 612

background image

MOTOROLA

DSP96002 USER’S MANUAL

B-93

fmpy.s d2,d1,d2 x:(r4)+,d4.s y:,d6.s ;Ys Yf 1 1

fmpy d5,d4,d3 fadd.s d3,d2 d0.s,x:(r1)+n1 d7.s,y: ;Xo Zo 1 1

fmpy.s d3,d1,d3 x:(r6),d7.l ;Cnt 1 1

fadd.s d6,d3 x:(r0)+,d0.s d2.s,y:(r5)+ ;X 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 loop

;

;---------------------------------------------------------

; Transform point to clip space

_reject_entry

dec d7 d2.s,y:(r1)+ ; Wo 1 1

move x:(r0)+,d0.s y:(r4)+n4,d4.s ;X r4+2 1 1

_reject_loop

move x:(r0)+,d5.s y:(r4)+,d4.s ;Y M11 1 1

fmpy.s d4,d0,d2 x:(r4)+,d3.s y:,d4.s ;M41 M21 1 1

fmpy d4,d5,d3 fadd.s d3,d2 x:(r0)+,d6.s y:(r4)+,d4.s ; M31 1 1

fmpy d4,d6,d3 fadd.s d3,d2 y:(r4)+,d4.s ; M12 1 1

fmpy d4,d0,d1 fadd.s d3,d2 x:(r4)+,d3.s y:,d4.s ;M42 M22 1 1

fmpy d4,d5,d3 fadd.s d3,d1 y:(r4)+,d4.s ; M32 1 1

fmpy d4,d6,d3 fadd.s d3,d1 d2.s,x:(r1)+ y:(r4)+,d4.s ;Xn M13 1 1

fmpy d4,d0,d2 fadd.s d3,d1 x:(r4)+,d3.s y:,d4.s ;M43 M23 1 1

fmpy d4,d5,d3 fadd.s d3,d2 y:(r4)+,d4.s ; M33 1 1

fmpy d4,d6,d3 fadd.s d3,d2 d1.s,x:(r1)- y:(r4)+,d4.s ;Yn M14 1 1

fmpy d4,d0,d1 fadd.s d3,d2 x:(r4)+,d3.s y:,d4.s ;M44 M24 1 1

fmpy d4,d5,d3 fadd.s d3,d1 y:(r4)+,d4.s ; M34 1 1

fmpy d4,d6,d3 fadd.s d3,d1 d2.s,y:(r1)- ; Zn 1 1

fadd.s d3,d1 ; 1 1

; Determine trivial rejection