B-62
DSP96002 USER’S MANUAL
MOTOROLA
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
fcmp d1,d0 x:(r0)-n0,d0.s ;x0-Xmin, get x1 1 1
fcmpg d1,d0 y:(r4)+,d1.s ;x1-Xmin, Xmax 1 1
fcmp d0,d1 x:(r0)+,d0.s ;Xmax-x1, get x0 1 1
fcmpg d0,d1 x:(r0)+n0,d0.s y:(r4)+,d1.s ;Xmax-x0, y0,Ymin 1 1
fcmp d1,d0 x:(r0)-n0,d0.s ;y0-Ymin, get y1 1 1
fcmpg d1,d0 y:(r4)+,d1.s ;y1-Ymin, Ymax 1 1
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
fcmpg d1,d0 y:(r4)+,d1.s ;z1-Zmin, Zmax 1 1
fcmp d0,d1 x:(r0),d0.s ;Zmax-z1, get z0 1 1
fcmpg d0,d1 ;Zmax-z0 1 1
--- ---
Totals: 14 14
If the A bit is set, the line can be accepted. If the R bit is cleared, the line can be rejected.
B.1.33.3
Line Accept/Reject, Fixed Point Version
Program
ICycles
Words
ori #e0,ccr ;set accept/reject/infinity bits 1 1
move x:(r0)+n0,d0.l y:(r4)+,d1.l ;get x0,Xmin 1 1
cmp d1,d0 x:(r0)-n0,d0.l ;x0-Xmin, get x1 1 1
cmpg d1,d0 y:(r4)+,d1.l ;x1-Xmin, Xmax 1 1
cmp d0,d1 x:(r0)+,d0.l ;Xmax-x1, get x0 1 1
cmpg d0,d1 x:(r0)+n0,d0.l y:(r4)+,d1.l ;Xmax-x0, y0,Ymin 1 1
cmp d1,d0 x:(r0)-n0,d0.l ;y0-Ymin, get y1 1 1
cmpg d1,d0 y:(r4)+,d1.l ;y1-Ymin, Ymax 1 1
cmp d0,d1 x:(r0)+,d0.l ;Ymax-y1, get y0 1 1
cmpg d0,d1 x:(r0)+n0,d0.l y:(r4)+,d1.l ;Ymax-y0, z0,Zmin 1 1
cmp d1,d0 x:(r0)-n0,d0.l ;z0-Zmin, get z1 1 1
cmpg d1,d0 y:(r4)+,d1.l ;z1-Zmin, Zmax 1 1
cmp d0,d1 x:(r0),d0.l ;Zmax-z1, get z0 1 1
cmpg d0,d1 ;Zmax-z0 1 1
--- ---
Totals: 14 14
Summary of Contents for DSP96002
Page 3: ...1 2 DSP96002 USER S MANUAL MOTOROLA ...
Page 38: ...MOTOROLA DSP96002 USER S MANUAL 3 15 Figure 3 4 Modulo Arithmetic Unit Block Diagram ...
Page 39: ...3 16 DSP96002 USER S MANUAL MOTOROLA ...
Page 53: ...4 14 DSP96002 USER S MANUAL MOTOROLA ...
Page 76: ...MOTOROLA DSP96002 USER S MANUAL 5 23 Figure 5 8 Address Modifier Summary ...
Page 86: ...6 10 DSP96002 USER S MANUAL MOTOROLA ...
Page 101: ...MOTOROLA DSP96002 USER S MANUAL 7 15 Figure 7 9 HI Block Diagram One Port ...
Page 140: ...7 54 DSP96002 USER S MANUAL MOTOROLA ...
Page 166: ...9 10 DSP96002 USER S MANUAL MOTOROLA ...
Page 181: ...MOTOROLA DSP96002 USER S MANUAL 10 15 Figure 10 8 Program Address Bus FIFO ...
Page 337: ...MOTOROLA DSP96002 USER S MANUAL A 149 ...
Page 404: ...A 216 DSP96002 USER S MANUAL MOTOROLA PC xxxx D ...
Page 460: ...A 272 DSP96002 USER S MANUAL MOTOROLA SIOP Not affected ...
Page 484: ...A 296 DSP96002 USER S MANUAL MOTOROLA SSH PC SSL SR SP 1 SP ...
Page 519: ...MOTOROLA DSP96002 USER S MANUAL A 331 ...
Page 718: ...MOTOROLA DSP96002 USER S MANUAL B 199 ...
Page 871: ... MOTOROLA INC 1994 MOTOROLA TECHNICAL DATA SEMICONDUCTOR M Addendum ...
Page 888: ...MOTOROLA INDEX 1 INDEX ...
Page 889: ......