Motorola DSP96002 User Manual

Page 583

Advertising
background image

B-64

DSP96002 USER’S MANUAL

MOTOROLA

fcmp d0,d1 x:(r0)+,d0.s ;Ymax-y1, get y0 1 1

fcmpg d0,d1 x:(r0)+n0,d0.s y:(r4)+,d1.s ;Ymax-y0, z0,Zmin 1 1

fcmp d1,d0 x:(r0)+n0,d0.s ;z0-Zmin, get z1 1 1

fcmp d1,d0 x:(r0)+n0,d0.s ;z1-Zmin, get z2 1 1

fcmp d1,d0 x:(r0)-n0,d0.s ;z2-Zmin, get z3 1 1

fcmpg d1,d0 y:(r4)+,d1.s ;z3-Zmin, Zmax 1 1

fcmp d0,d1 x:(r0)-n0,d0.s ;Zmax-z3, get z2 1 1

fcmp d0,d1 x:(r0)-n0,d0.s ;Zmax-z2, get z1 1 1

fcmp d0,d1 x:(r0)+,d0.s ;Zmax-z1, get z0 1 1

fcmpg d0,d1 ;Zmax-z0 1 1

--- ---

Totals: 26 26

If the A bit is set, the polygon can be accepted, if the R bit is cleared, the polygon can be rejected.

B.1.33.5

Four Point Polygon Accept/Reject (looped)

Polygon Accept/Reject

Program Icycles

Words

ori #$e0,ccr ;set accept/reject/overflow bits 1 1

move x:(r0)+n0,d0.s y:(r4)+,d1.s ;get x0,Xmin 1 1

do #3,clip 2 3

fcmp d1,d0 x:(r0)+n0,d0.s ;d0-Dmin, get d1 1 1

fcmp d1,d0 x:(r0)+n0,d0.s ;d1-Dmin, get d2 1 1

fcmp d1,d0 x:(r0)-n0,d0.s ;d2-Dmin, get d3 1 1

fcmpg d1,d0 y:(r4)+,d1.s ;d3-Dmin, Dmax 1 1

fcmp d0,d1 x:(r0)-n0,d0.s ;Dmax-x3, get d2 1 1

fcmp d0,d1 x:(r0)-n0,d0.s ;Dmax-x2, get d1 1 1

fcmp d0,d1 x:(r0)+,d0.s ;Dmax-x1, get d0 1 1

fcmpg d0,d1 x:(r0)+n0,d0.s y:(r4)+,d1.s ;Dmax-x0, d0,Dmin 1 1

clip --- ---

Totals: 12 26

B.1.34

Cascaded Five Coefficient Transpose IIR Filter

The cascaded transpose IIR filter has a filter section:

Advertising