Motorola DSP96002 User Manual page 579

32-bit digital signal processor
Table of Contents

Advertisement

Registers:
d0 = x
d1 = y
d2 = z
d3 = unused
Memory Map:
X Memory
ori
move
fcmp
fcmp
fcmp
fcmp
fcmp
fcmp
If the point is within the limits, then the A bit of the CCR is equal to one, otherwise, the point can be rejected.
B.1.33.2
Line Accept/Reject, floating-point Version
This determines if the line from (x0,y0,z0) to (x1,y1,z1) is within a three-dimensional view cube. If the line
is within the cube, the A (accept) bit of the CCR will be set. If the line is entirely outside of the cube, then
the R bit will be cleared. If the line can not be accepted or rejected, then further processing is required to
clip the line where it intersects with a boundary plane.
Registers:
d0 = dimension d4 = unused
d1 = limit
d2 = unused
d3 = unused
Memory Map:
B-60
d4 = limit
d5 = unused
d6 = unused
d7 = unused
Y Memory
Xmin
r0
Xmax
Ymin
Ymax
Zmin
Zmax
Single Point Accept/Reject
#$80,ccr
y:(r0)+,d4.s
d4,d0
y:(r0)+,d4.s
d0,d4
y:(r0)+,d4.s
d4,d1
y:(r0)+,d4,s
d1,d4
y:(r0)+,d4.s
d4,d2
y:(r0)+,d4.s
d2,d4
d5 = unused
d6 = unused
d7 = unused
DSP96002 USER'S MANUAL
Program ICycles
Words
;set accept bit
;get window minimum
;x-Xmin
;Xmax-x
;y-Ymin
;Ymax-y
;z-Zmin
;Zmax-z
Totals:
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
---
---
8
8
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents