4 ; Include file
for asm routines.
8 ; !!! note that
this file must match the corresponding
C structures at all
12 ;
set to 0 to skip all
asm code
15 ; !!! must be kept the same as in d_iface.h !!!
19 externdef _d_zistepu:dword
20 externdef _d_pzbuffer:dword
21 externdef _d_zistepv:dword
22 externdef _d_zrowbytes:dword
23 externdef _d_ziorigin:dword
24 externdef _r_turb_s:dword
25 externdef _r_turb_t:dword
26 externdef _r_turb_pdest:dword
27 externdef _r_turb_spancount:dword
28 externdef _r_turb_turb:dword
29 externdef _r_turb_pbase:dword
30 externdef _r_turb_sstep:dword
31 externdef _r_turb_tstep:dword
32 externdef _r_bmodelactive:dword
33 externdef _d_sdivzstepu:dword
34 externdef _d_tdivzstepu:dword
35 externdef _d_sdivzstepv:dword
36 externdef _d_tdivzstepv:dword
37 externdef _d_sdivzorigin:dword
38 externdef _d_tdivzorigin:dword
39 externdef _sadjust:dword
40 externdef _tadjust:dword
41 externdef _bbextents:dword
42 externdef _bbextentt:dword
43 externdef _cacheblock:dword
44 externdef _d_viewbuffer:dword
45 externdef _cachewidth:dword
46 externdef _d_pzbuffer:dword
47 externdef _d_zrowbytes:dword
48 externdef _d_zwidth:dword
49 externdef _d_scantable:dword
50 externdef _r_lightptr:dword
51 externdef _r_numvblocks:dword
52 externdef _prowdestbase:dword
53 externdef _pbasesource:dword
54 externdef _r_lightwidth:dword
55 externdef _lightright:dword
56 externdef _lightrightstep:dword
57 externdef _lightdeltastep:dword
58 externdef _lightdelta:dword
59 externdef _lightright:dword
60 externdef _lightdelta:dword
61 externdef _sourcetstep:dword
62 externdef _surfrowbytes:dword
63 externdef _lightrightstep:dword
64 externdef _lightdeltastep:dword
65 externdef _r_sourcemax:dword
66 externdef _r_stepback:dword
67 externdef _colormap:dword
68 externdef _blocksize:dword
69 externdef _sourcesstep:dword
70 externdef _lightleft:dword
71 externdef _blockdivshift:dword
72 externdef _blockdivmask:dword
73 externdef _lightleftstep:dword
74 externdef _r_origin:dword
75 externdef _r_ppn:dword
76 externdef _r_pup:dword
77 externdef _r_pright:dword
78 externdef _ycenter:dword
79 externdef _xcenter:dword
80 externdef _d_vrectbottom_particle:dword
81 externdef _d_vrectright_particle:dword
82 externdef _d_vrecty:dword
83 externdef _d_vrectx:dword
84 externdef _d_pix_shift:dword
85 externdef _d_pix_min:dword
86 externdef _d_pix_max:dword
87 externdef _d_y_aspect_shift:dword
88 externdef _screenwidth:dword
89 externdef _r_leftclipped:dword
90 externdef _r_leftenter:dword
91 externdef _r_rightclipped:dword
92 externdef _r_rightenter:dword
93 externdef _modelorg:dword
94 externdef _xscale:dword
95 externdef _r_refdef:dword
96 externdef _yscale:dword
97 externdef _r_leftexit:dword
98 externdef _r_rightexit:dword
99 externdef _r_lastvertvalid:dword
100 externdef _cacheoffset:dword
101 externdef _newedges:dword
102 externdef _removeedges:dword
103 externdef _r_pedge:dword
104 externdef _r_framecount:dword
105 externdef _r_u1:dword
106 externdef _r_emitted:dword
107 externdef _edge_p:dword
108 externdef _surface_p:dword
109 externdef _surfaces:dword
110 externdef _r_lzi1:dword
111 externdef _r_v1:dword
112 externdef _r_ceilv1:dword
113 externdef _r_nearzi:dword
114 externdef _r_nearzionly:dword
115 externdef _edge_aftertail:dword
116 externdef _edge_tail:dword
117 externdef _current_iv:dword
118 externdef _edge_head_u_shift20:dword
119 externdef _span_p:dword
120 externdef _edge_head:dword
122 externdef _edge_tail_u_shift20:dword
123 externdef _r_apverts:dword
124 externdef _r_anumverts:dword
125 externdef _aliastransform:dword
126 externdef _r_avertexnormals:dword
127 externdef _r_plightvec:dword
128 externdef _r_ambientlight:dword
129 externdef _r_shadelight:dword
130 externdef _aliasxcenter:dword
131 externdef _aliasycenter:dword
132 externdef _a_sstepxfrac:dword
133 externdef _r_affinetridesc:dword
134 externdef _acolormap:dword
135 externdef _d_pcolormap:dword
136 externdef _r_affinetridesc:dword
137 externdef _d_sfrac:dword
138 externdef _d_ptex:dword
139 externdef _d_pedgespanpackage:dword
140 externdef _d_tfrac:dword
141 externdef _d_light:dword
142 externdef _d_zi:dword
143 externdef _d_pdest:dword
144 externdef _d_pz:dword
145 externdef _d_aspancount:dword
146 externdef _erroradjustup:dword
147 externdef _errorterm:dword
148 externdef _d_xdenom:dword
149 externdef _r_p0:dword
150 externdef _r_p1:dword
151 externdef _r_p2:dword
152 externdef _a_tstepxfrac:dword
153 externdef _r_sstepx:dword
154 externdef _r_tstepx:dword
155 externdef _a_ststepxwhole:dword
156 externdef _zspantable:dword
157 externdef _skintable:dword
158 externdef _r_zistepx:dword
159 externdef _erroradjustdown:dword
160 externdef _d_countextrastep:dword
161 externdef _ubasestep:dword
162 externdef _a_ststepxwhole:dword
163 externdef _a_tstepxfrac:dword
164 externdef _r_lstepx:dword
165 externdef _a_spans:dword
166 externdef _erroradjustdown:dword
167 externdef _d_pdestextrastep:dword
168 externdef _d_pzextrastep:dword
169 externdef _d_sfracextrastep:dword
170 externdef _d_ptexextrastep:dword
171 externdef _d_countextrastep:dword
172 externdef _d_tfracextrastep:dword
173 externdef _d_lightextrastep:dword
174 externdef _d_ziextrastep:dword
175 externdef _d_pdestbasestep:dword
176 externdef _d_pzbasestep:dword
177 externdef _d_sfracbasestep:dword
178 externdef _d_ptexbasestep:dword
179 externdef _ubasestep:dword
180 externdef _d_tfracbasestep:dword
181 externdef _d_lightbasestep:dword
182 externdef _d_zibasestep:dword
183 externdef _zspantable:dword
184 externdef _r_lstepy:dword
185 externdef _r_sstepy:dword
186 externdef _r_tstepy:dword
187 externdef _r_zistepy:dword
188 externdef _D_PolysetSetEdgeTable:dword
189 externdef _D_RasterizeAliasPolySmooth:dword
191 externdef float_point5:dword
192 externdef Float2ToThe31nd:dword
193 externdef izistep:dword
195 externdef FloatMinus2ToThe31nd:dword
196 externdef float_1:dword
197 externdef float_particle_z_clip:dword
198 externdef float_minus_1:dword
199 externdef float_0:dword
200 externdef fp_16:dword
201 externdef fp_64k:dword
202 externdef fp_1m:dword
203 externdef fp_1m_minus_1:dword
204 externdef fp_8 :dword
205 externdef entryvec_table:dword
206 externdef advancetable:dword
207 externdef sstep:dword
208 externdef tstep:dword
209 externdef pspantemp:dword
210 externdef counttemp:dword
211 externdef jumptemp:dword
212 externdef reciprocal_table:dword
213 externdef DP_Count:dword
216 externdef DP_32768:dword
217 externdef DP_Color:dword
218 externdef DP_Pix:dword
219 externdef DP_EntryTable:dword
220 externdef pbase:dword
223 externdef sfracf:dword
224 externdef tfracf:dword
225 externdef snext:dword
226 externdef tnext:dword
227 externdef spancountminus1:dword
228 externdef zi16stepu:dword
229 externdef sdivz16stepu:dword
230 externdef tdivz16stepu:dword
231 externdef zi8stepu:dword
232 externdef sdivz8stepu:dword
233 externdef tdivz8stepu:dword
234 externdef reciprocal_table_16:dword
235 externdef entryvec_table_16:dword
236 externdef fp_64kx64k:dword
238 externdef spr8entryvec_table:dword
241 externdef _fpu_ceil_cw:dword
242 externdef _fpu_chop_cw:dword
243 externdef _snd_scaletable:dword
244 externdef _paintbuffer:dword
245 externdef _snd_linear_count:dword
246 externdef _snd_p:dword
247 externdef _snd_vol:dword
248 externdef _snd_out:dword
249 externdef _vright:dword
252 externdef _BOPS_Error:dword
255 ; !!!
if this is changed, it must be changed in model.h too !!!
256 ; !!!
if the size of
this is changed, the array lookup in SV_HullPointContents
257 ; must be changed too !!!
266 ; !!!
if this is changed, it must be changed in model.h too !!!
276 ; !!!
if this is changed, it must be changed in bspfile.h too !!!
286 ; !!!
if this is changed, it much be changed in sound.h too !!!
295 ; !!!
if this is changed, it much be changed in sound.h too !!!
310 ; !!!
if this is changed, it much be changed in sound.h too !!!
315 ; !!!
if this is changed, it must be changed in r_local.h too !!!
318 ; !!!
if this is changed, it must be changed in r_local.h too !!!
322 ; !!!
if this is changed, it must be changed in r_shared.h too !!!
330 ; !!!
if this is changed, it must be changed in d_local.h too !!!
337 ; !!!
if this is changed, it must be changed in d_polyset.c too !!!
338 spanpackage_t_pdest equ 0
339 spanpackage_t_pz equ 4
340 spanpackage_t_count equ 8
341 spanpackage_t_ptex equ 12
342 spanpackage_t_sfrac equ 16
343 spanpackage_t_tfrac equ 20
344 spanpackage_t_light equ 24
345 spanpackage_t_zi equ 28
346 spanpackage_t_size equ 32
349 ; !!!
if this is changed, it must be changed in r_shared.h too !!!
361 ; !!!
if this is changed, it must be changed in r_shared.h too !!!
381 ; !!!
if this is changed, it must be changed in r_local.h too !!!
391 ; !!!
if this is changed, it must be changed in model.h too !!!
397 ; !!!
if this is changed, it must be changed in model.h too !!!
402 ; !!!
if this is changed, it must be changed in render.h too !!!
428 ; mtriangle_t structure
429 ; !!!
if this is changed, it must be changed in model.h too !!!
432 mtri_size equ 16 ; !!!
if this changes, array indexing in !!!
433 ; !!! d_polysa.s must be changed to match !!!