Motorola DSP96002 User Manual page 583

32-bit digital signal processor
Table of Contents

Advertisement

fcmp
fcmpg d0,d1
fcmp
fcmp
fcmp
fcmpg d1,d0
fcmp
fcmp
fcmp
fcmpg d0,d1
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)
ori
#$e0,ccr
move
do
#3,clip
fcmp
d1,d0
fcmp
d1,d0
fcmp
d1,d0
fcmpg d1,d0
fcmp
d0,d1
fcmp
d0,d1
fcmp
d0,d1
fcmpg d0,d1
clip
B.1.34
Cascaded Five Coefficient Transpose IIR Filter
The cascaded transpose IIR filter has a filter section:
B-64
d0,d1
x:(r0)+,d0.s
x:(r0)+n0,d0.s y:(r4)+,d1.s ;Ymax-y0, z0,Zmin 1
d1,d0
x:(r0)+n0,d0.s
d1,d0
x:(r0)+n0,d0.s
d1,d0
x:(r0)-n0,d0.s
d0,d1
x:(r0)-n0,d0.s
d0,d1
x:(r0)-n0,d0.s
d0,d1
x:(r0)+,d0.s
Polygon Accept/Reject
;set accept/reject/overflow bits
x:(r0)+n0,d0.s y:(r4)+,d1.s ;get x0,Xmin
x:(r0)+n0,d0.s
x:(r0)+n0,d0.s
x:(r0)-n0,d0.s
y:(r4)+,d1.s ;d3-Dmin, Dmax
x:(r0)-n0,d0.s
x:(r0)-n0,d0.s
x:(r0)+,d0.s
x:(r0)+n0,d0.s y:(r4)+,d1.s ;Dmax-x0, d0,Dmin 1
DSP96002 USER'S MANUAL
;Ymax-y1, get y0
;z0-Zmin, get z1
;z1-Zmin, get z2
;z2-Zmin, get z3
y:(r4)+,d1.s ;z3-Zmin, Zmax
;Zmax-z3, get z2
;Zmax-z2, get z1
;Zmax-z1, get z0
;Zmax-z0
;d0-Dmin, get d1
;d1-Dmin, get d2
;d2-Dmin, get d3
;Dmax-x3, get d2
;Dmax-x2, get d1
;Dmax-x1, get d0
Totals:
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
---
---
Totals:
26
26
Program Icycles
Words
1
1
1
1
2
3
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
---
---
12
26
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents