Motorola DSP96002 User Manual page 610

32-bit digital signal processor
Table of Contents

Advertisement

; Determine if point is within view volume
fneg.s d1
ori
fcmp
fcmp
fcmp
fcmp
fcmp
fcmp
jclr
; Calculate reciprocal 1/W
fseedd d2,d6
fmpy.s d2,d6,d1
fmpy.s d1,d4,d1
fmpy
fmpy.s d1,d3,d1
; Multiply coordinates by 1/W, scale and add offset
fmpy.s d0,d4,d2
fmpy.s d2,d1,d2
fmpy
fmpy.s d3,d1,d3
dec
jne
jmp
MOTOROLA
#$80,ccr
d1,d0
d0,d2
d1,d5
d5,d2
d4,d6
d6,d2
#7,sr,_accept_clip
fsub.s d1,d4 d4.s,d3.s
d6,d4,d1 fsub.s d1,d3 d5.s,x:(r1)+
d5,d4,d3 fadd.s d3,d2 x:(r6),d7.l
fadd.s d6,d3 x:(r0)+,d0.s
d7
_accept_loop
_end
DSP96002 USER'S MANUAL
d1.s,d2.s
d2.s,y:(r1)
x:(r1)-,d5.s
n0,d4.s
y:(r1)-,d6.s ;
d7.l,x:(r6)
d6.s,d7.s
d9.s,d4.s
d2.s,y:(r1)- ;
d0.s,x:(r1)+
d7.s,y:
x:(r4)+,d4.s
y:,d3.s
x:(r4)+,d4.s
y:,d6.s
d2.s,y:(r5)+ ;
d3.s,y:(r5)+ ;
;
1
1
;
1
1
;
Wn
1
1
;Yn
1
1
;
1
1
Zn
1
1
;
1
1
;
1
1
;
2
3
;
1
1
;
1
1
Wo
1
1
;Xo
Zo
1
1
;Yo
1
1
;Xs
Xf
1
1
;
1
1
;Ys
Yf
1
1
;
1
1
1
1
;
1
1
Y1
1
1
;
2
2
;
2
2
B-91

Advertisement

Table of Contents
loading

Table of Contents