d_varsa.asm 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. .386P
  2. .model FLAT
  3. externdef _d_zistepu:dword
  4. externdef _d_pzbuffer:dword
  5. externdef _d_zistepv:dword
  6. externdef _d_zrowbytes:dword
  7. externdef _d_ziorigin:dword
  8. externdef _r_turb_s:dword
  9. externdef _r_turb_t:dword
  10. externdef _r_turb_pdest:dword
  11. externdef _r_turb_spancount:dword
  12. externdef _r_turb_turb:dword
  13. externdef _r_turb_pbase:dword
  14. externdef _r_turb_sstep:dword
  15. externdef _r_turb_tstep:dword
  16. externdef _r_bmodelactive:dword
  17. externdef _d_sdivzstepu:dword
  18. externdef _d_tdivzstepu:dword
  19. externdef _d_sdivzstepv:dword
  20. externdef _d_tdivzstepv:dword
  21. externdef _d_sdivzorigin:dword
  22. externdef _d_tdivzorigin:dword
  23. externdef _sadjust:dword
  24. externdef _tadjust:dword
  25. externdef _bbextents:dword
  26. externdef _bbextentt:dword
  27. externdef _cacheblock:dword
  28. externdef _d_viewbuffer:dword
  29. externdef _cachewidth:dword
  30. externdef _d_pzbuffer:dword
  31. externdef _d_zrowbytes:dword
  32. externdef _d_zwidth:dword
  33. externdef _d_scantable:dword
  34. externdef _r_lightptr:dword
  35. externdef _r_numvblocks:dword
  36. externdef _prowdestbase:dword
  37. externdef _pbasesource:dword
  38. externdef _r_lightwidth:dword
  39. externdef _lightright:dword
  40. externdef _lightrightstep:dword
  41. externdef _lightdeltastep:dword
  42. externdef _lightdelta:dword
  43. externdef _lightright:dword
  44. externdef _lightdelta:dword
  45. externdef _sourcetstep:dword
  46. externdef _surfrowbytes:dword
  47. externdef _lightrightstep:dword
  48. externdef _lightdeltastep:dword
  49. externdef _r_sourcemax:dword
  50. externdef _r_stepback:dword
  51. externdef _colormap:dword
  52. externdef _blocksize:dword
  53. externdef _sourcesstep:dword
  54. externdef _lightleft:dword
  55. externdef _blockdivshift:dword
  56. externdef _blockdivmask:dword
  57. externdef _lightleftstep:dword
  58. externdef _r_origin:dword
  59. externdef _r_ppn:dword
  60. externdef _r_pup:dword
  61. externdef _r_pright:dword
  62. externdef _ycenter:dword
  63. externdef _xcenter:dword
  64. externdef _d_vrectbottom_particle:dword
  65. externdef _d_vrectright_particle:dword
  66. externdef _d_vrecty:dword
  67. externdef _d_vrectx:dword
  68. externdef _d_pix_shift:dword
  69. externdef _d_pix_min:dword
  70. externdef _d_pix_max:dword
  71. externdef _d_y_aspect_shift:dword
  72. externdef _screenwidth:dword
  73. externdef _vright:dword
  74. externdef _vup:dword
  75. externdef _vpn:dword
  76. externdef _BOPS_Error:dword
  77. externdef _snd_scaletable:dword
  78. externdef _paintbuffer:dword
  79. externdef _snd_linear_count:dword
  80. externdef _snd_p:dword
  81. externdef _snd_vol:dword
  82. externdef _snd_out:dword
  83. externdef _r_leftclipped:dword
  84. externdef _r_leftenter:dword
  85. externdef _r_rightclipped:dword
  86. externdef _r_rightenter:dword
  87. externdef _modelorg:dword
  88. externdef _xscale:dword
  89. externdef _r_refdef:dword
  90. externdef _yscale:dword
  91. externdef _r_leftexit:dword
  92. externdef _r_rightexit:dword
  93. externdef _r_lastvertvalid:dword
  94. externdef _cacheoffset:dword
  95. externdef _newedges:dword
  96. externdef _removeedges:dword
  97. externdef _r_pedge:dword
  98. externdef _r_framecount:dword
  99. externdef _r_u1:dword
  100. externdef _r_emitted:dword
  101. externdef _edge_p:dword
  102. externdef _surface_p:dword
  103. externdef _surfaces:dword
  104. externdef _r_lzi1:dword
  105. externdef _r_v1:dword
  106. externdef _r_ceilv1:dword
  107. externdef _r_nearzi:dword
  108. externdef _r_nearzionly:dword
  109. externdef _edge_aftertail:dword
  110. externdef _edge_tail:dword
  111. externdef _current_iv:dword
  112. externdef _edge_head_u_shift20:dword
  113. externdef _span_p:dword
  114. externdef _edge_head:dword
  115. externdef _fv:dword
  116. externdef _edge_tail_u_shift20:dword
  117. externdef _r_apverts:dword
  118. externdef _r_anumverts:dword
  119. externdef _aliastransform:dword
  120. externdef _r_avertexnormals:dword
  121. externdef _r_plightvec:dword
  122. externdef _r_ambientlight:dword
  123. externdef _r_shadelight:dword
  124. externdef _aliasxcenter:dword
  125. externdef _aliasycenter:dword
  126. externdef _a_sstepxfrac:dword
  127. externdef _r_affinetridesc:dword
  128. externdef _acolormap:dword
  129. externdef _d_pcolormap:dword
  130. externdef _r_affinetridesc:dword
  131. externdef _d_sfrac:dword
  132. externdef _d_ptex:dword
  133. externdef _d_pedgespanpackage:dword
  134. externdef _d_tfrac:dword
  135. externdef _d_light:dword
  136. externdef _d_zi:dword
  137. externdef _d_pdest:dword
  138. externdef _d_pz:dword
  139. externdef _d_aspancount:dword
  140. externdef _erroradjustup:dword
  141. externdef _errorterm:dword
  142. externdef _d_xdenom:dword
  143. externdef _r_p0:dword
  144. externdef _r_p1:dword
  145. externdef _r_p2:dword
  146. externdef _a_tstepxfrac:dword
  147. externdef _r_sstepx:dword
  148. externdef _r_tstepx:dword
  149. externdef _a_ststepxwhole:dword
  150. externdef _zspantable:dword
  151. externdef _skintable:dword
  152. externdef _r_zistepx:dword
  153. externdef _erroradjustdown:dword
  154. externdef _d_countextrastep:dword
  155. externdef _ubasestep:dword
  156. externdef _a_ststepxwhole:dword
  157. externdef _a_tstepxfrac:dword
  158. externdef _r_lstepx:dword
  159. externdef _a_spans:dword
  160. externdef _erroradjustdown:dword
  161. externdef _d_pdestextrastep:dword
  162. externdef _d_pzextrastep:dword
  163. externdef _d_sfracextrastep:dword
  164. externdef _d_ptexextrastep:dword
  165. externdef _d_countextrastep:dword
  166. externdef _d_tfracextrastep:dword
  167. externdef _d_lightextrastep:dword
  168. externdef _d_ziextrastep:dword
  169. externdef _d_pdestbasestep:dword
  170. externdef _d_pzbasestep:dword
  171. externdef _d_sfracbasestep:dword
  172. externdef _d_ptexbasestep:dword
  173. externdef _ubasestep:dword
  174. externdef _d_tfracbasestep:dword
  175. externdef _d_lightbasestep:dword
  176. externdef _d_zibasestep:dword
  177. externdef _zspantable:dword
  178. externdef _r_lstepy:dword
  179. externdef _r_sstepy:dword
  180. externdef _r_tstepy:dword
  181. externdef _r_zistepy:dword
  182. externdef _D_PolysetSetEdgeTable:dword
  183. externdef _D_RasterizeAliasPolySmooth:dword
  184. externdef float_point5:dword
  185. externdef Float2ToThe31nd:dword
  186. externdef izistep:dword
  187. externdef izi:dword
  188. externdef FloatMinus2ToThe31nd:dword
  189. externdef float_1:dword
  190. externdef float_particle_z_clip:dword
  191. externdef float_minus_1:dword
  192. externdef float_0:dword
  193. externdef fp_16:dword
  194. externdef fp_64k:dword
  195. externdef fp_1m:dword
  196. externdef fp_1m_minus_1:dword
  197. externdef fp_8:dword
  198. externdef entryvec_table:dword
  199. externdef advancetable:dword
  200. externdef sstep:dword
  201. externdef tstep:dword
  202. externdef pspantemp:dword
  203. externdef counttemp:dword
  204. externdef jumptemp:dword
  205. externdef reciprocal_table:dword
  206. externdef DP_Count:dword
  207. externdef DP_u:dword
  208. externdef DP_v:dword
  209. externdef DP_32768:dword
  210. externdef DP_Color:dword
  211. externdef DP_Pix:dword
  212. externdef DP_EntryTable:dword
  213. externdef pbase:dword
  214. externdef s:dword
  215. externdef t:dword
  216. externdef sfracf:dword
  217. externdef tfracf:dword
  218. externdef snext:dword
  219. externdef tnext:dword
  220. externdef spancountminus1:dword
  221. externdef zi16stepu:dword
  222. externdef sdivz16stepu:dword
  223. externdef tdivz16stepu:dword
  224. externdef zi8stepu:dword
  225. externdef sdivz8stepu:dword
  226. externdef tdivz8stepu:dword
  227. externdef reciprocal_table_16:dword
  228. externdef entryvec_table_16:dword
  229. externdef ceil_cw:dword
  230. externdef single_cw:dword
  231. externdef fp_64kx64k:dword
  232. externdef pz:dword
  233. externdef spr8entryvec_table:dword
  234. _DATA SEGMENT
  235. align 4
  236. public _d_sdivzstepu
  237. public _d_tdivzstepu
  238. public _d_zistepu
  239. public _d_sdivzstepv
  240. public _d_tdivzstepv
  241. public _d_zistepv
  242. public _d_sdivzorigin
  243. public _d_tdivzorigin
  244. public _d_ziorigin
  245. _d_sdivzstepu dd 0
  246. _d_tdivzstepu dd 0
  247. _d_zistepu dd 0
  248. _d_sdivzstepv dd 0
  249. _d_tdivzstepv dd 0
  250. _d_zistepv dd 0
  251. _d_sdivzorigin dd 0
  252. _d_tdivzorigin dd 0
  253. _d_ziorigin dd 0
  254. public _sadjust
  255. public _tadjust
  256. public _bbextents
  257. public _bbextentt
  258. _sadjust dd 0
  259. _tadjust dd 0
  260. _bbextents dd 0
  261. _bbextentt dd 0
  262. public _cacheblock
  263. public _d_viewbuffer
  264. public _cachewidth
  265. public _d_pzbuffer
  266. public _d_zrowbytes
  267. public _d_zwidth
  268. _cacheblock dd 0
  269. _cachewidth dd 0
  270. _d_viewbuffer dd 0
  271. _d_pzbuffer dd 0
  272. _d_zrowbytes dd 0
  273. _d_zwidth dd 0
  274. public izi
  275. izi dd 0
  276. public pbase, s, t, sfracf, tfracf, snext, tnext
  277. public spancountminus1, zi16stepu, sdivz16stepu, tdivz16stepu
  278. public zi8stepu, sdivz8stepu, tdivz8stepu, pz
  279. s dd 0
  280. t dd 0
  281. snext dd 0
  282. tnext dd 0
  283. sfracf dd 0
  284. tfracf dd 0
  285. pbase dd 0
  286. zi8stepu dd 0
  287. sdivz8stepu dd 0
  288. tdivz8stepu dd 0
  289. zi16stepu dd 0
  290. sdivz16stepu dd 0
  291. tdivz16stepu dd 0
  292. spancountminus1 dd 0
  293. pz dd 0
  294. public izistep
  295. izistep dd 0
  296. public reciprocal_table_16, entryvec_table_16
  297. reciprocal_table_16 dd 040000000h, 02aaaaaaah, 020000000h
  298. dd 019999999h, 015555555h, 012492492h
  299. dd 010000000h, 0e38e38eh, 0ccccccch, 0ba2e8bah
  300. dd 0aaaaaaah, 09d89d89h, 09249249h, 08888888h
  301. externdef Entry2_16:dword
  302. externdef Entry3_16:dword
  303. externdef Entry4_16:dword
  304. externdef Entry5_16:dword
  305. externdef Entry6_16:dword
  306. externdef Entry7_16:dword
  307. externdef Entry8_16:dword
  308. externdef Entry9_16:dword
  309. externdef Entry10_16:dword
  310. externdef Entry11_16:dword
  311. externdef Entry12_16:dword
  312. externdef Entry13_16:dword
  313. externdef Entry14_16:dword
  314. externdef Entry15_16:dword
  315. externdef Entry16_16:dword
  316. entryvec_table_16 dd 0, Entry2_16, Entry3_16, Entry4_16
  317. dd Entry5_16, Entry6_16, Entry7_16, Entry8_16
  318. dd Entry9_16, Entry10_16, Entry11_16, Entry12_16
  319. dd Entry13_16, Entry14_16, Entry15_16, Entry16_16
  320. public DP_Count, DP_u, DP_v, DP_32768, DP_Color, DP_Pix, DP_EntryTable
  321. DP_Count dd 0
  322. DP_u dd 0
  323. DP_v dd 0
  324. DP_32768 dd 32768.0
  325. DP_Color dd 0
  326. DP_Pix dd 0
  327. externdef DP_1x1:dword
  328. externdef DP_2x2:dword
  329. externdef DP_3x3:dword
  330. externdef DP_4x4:dword
  331. DP_EntryTable dd DP_1x1, DP_2x2, DP_3x3, DP_4x4
  332. public advancetable, sstep, tstep, pspantemp, counttemp, jumptemp
  333. advancetable dd 0, 0
  334. sstep dd 0
  335. tstep dd 0
  336. pspantemp dd 0
  337. counttemp dd 0
  338. jumptemp dd 0
  339. public reciprocal_table, entryvec_table
  340. reciprocal_table dd 040000000h, 02aaaaaaah, 020000000h
  341. dd 019999999h, 015555555h, 012492492h
  342. externdef Entry2_8:dword
  343. externdef Entry3_8:dword
  344. externdef Entry4_8:dword
  345. externdef Entry5_8:dword
  346. externdef Entry6_8:dword
  347. externdef Entry7_8:dword
  348. externdef Entry8_8:dword
  349. entryvec_table dd 0, Entry2_8, Entry3_8, Entry4_8
  350. dd Entry5_8, Entry6_8, Entry7_8, Entry8_8
  351. externdef Spr8Entry2_8:dword
  352. externdef Spr8Entry3_8:dword
  353. externdef Spr8Entry4_8:dword
  354. externdef Spr8Entry5_8:dword
  355. externdef Spr8Entry6_8:dword
  356. externdef Spr8Entry7_8:dword
  357. externdef Spr8Entry8_8:dword
  358. public spr8entryvec_table
  359. spr8entryvec_table dd 0, Spr8Entry2_8, Spr8Entry3_8, Spr8Entry4_8
  360. dd Spr8Entry5_8, Spr8Entry6_8, Spr8Entry7_8, Spr8Entry8_8
  361. _DATA ENDS
  362. END