]> icculus.org git repositories - btb/d2x.git/blob - arch/dos/tweak.inc
add anisotropic texture filtering suport (d1x r1.33, r1.32, r1.23, r1.32)
[btb/d2x.git] / arch / dos / tweak.inc
1 ;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
2 ;SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
3 ;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
4 ;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
5 ;IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
6 ;SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
7 ;FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
8 ;CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
9 ;AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.  
10 ;COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
11 ;
12 ; $Source: /cvs/cvsroot/d2x/arch/dos/tweak.inc,v $
13 ; $Revision: 1.3 $
14 ; $Author: bradleyb $
15 ; $Date: 2001-10-19 09:01:56 $
16 ;
17 ; Parameters used by modex.asm to set various modex resolutions.
18 ;
19 ; $Log: not supported by cvs2svn $
20 ; Revision 1.2  2001/01/29 13:35:08  bradleyb
21 ; Fixed build system, minor fixes
22 ;
23 ; Revision 1.1.1.1  2001/01/19 03:30:15  bradleyb
24 ; Import of d2x-0.0.8
25 ;
26 ; Revision 1.1.1.1  1999/06/14 21:58:45  donut
27 ; Import of d1x 1.37 source.
28 ;
29 ; Revision 1.3  1993/11/16  11:28:09  john
30 ; *** empty log message ***
31
32 ; Revision 1.2  1993/10/15  16:23:18  john
33 ; y
34
35 ; Revision 1.1  1993/09/08  11:41:09  john
36 ; Initial revision
37
38 ;
39 ;
40
41
42 ; Mode X CRTC register tweaks for various resolutions
43
44 X320Y200    db      00      ; 0e3h    ; dot clock
45             db      02      ; Number of CRTC Registers to update
46             dw      00014h  ; turn off dword mode
47             dw      0e317h  ; turn on byte mode
48             dw      320     ; width
49             dw      200     ; height
50
51 X320Y240    db      0e3h    ; dot clock
52             db      10      ; Number of CRTC Registers to update
53             dw      00d06h  ; vertical total
54             dw      03e07h  ; overflow (bit 8 of vertical counts)
55             dw      04109h  ; cell height (2 to double-scan)
56             dw      0ea10h  ; v sync start
57             dw      0ac11h  ; v sync end and protect cr0-cr7
58             dw      0df12h  ; vertical displayed
59             dw      00014h  ; turn off dword mode
60             dw      0e715h  ; v blank start
61             dw      00616h  ; v blank end
62             dw      0e317h  ; turn on byte mode
63             dw      320     ; width
64             dw      240     ; height
65
66 X360Y200    db      0e7h    ; dot clock
67             db      08      ; Number of CRTC Registers to update
68             dw      06b00h  ; horz total
69             dw      05901h  ; horz displayed
70             dw      05a02h  ; start horz blanking
71             dw      08e03h  ; end horz blanking
72             dw      05e04h  ; start h sync
73             dw      08a05h  ; end h sync
74             dw      00014h  ; turn off dword mode
75             dw      0e317h  ; turn on byte mode
76             dw      360     ; width
77             dw      200     ; height
78
79
80 X360Y240    db      0e7h    ; dot clock
81             db      17      ; Number of CRTC Registers to update
82             dw      06b00h  ; horz total
83             dw      05901h  ; horz displayed
84             dw      05a02h  ; start horz blanking
85             dw      08e03h  ; end horz blanking
86             dw      05e04h  ; start h sync
87             dw      08a05h  ; end h sync
88             dw      00d06h  ; vertical total
89             dw      03e07h  ; overflow (bit 8 of vertical counts)
90             dw      04109h  ; cell height (2 to double-scan)
91             dw      0ea10h  ; v sync start
92             dw      0ac11h  ; v sync end and protect cr0-cr7
93             dw      0df12h  ; vertical displayed
94             dw      02d13h  ; offset;
95             dw      00014h  ; turn off dword mode
96             dw      0e715h  ; v blank start
97             dw      00616h  ; v blank end
98             dw      0e317h  ; turn on byte mode
99             dw      360
100             dw      240
101
102 X376Y282    db      0e7h
103             db      18
104             dw      06e00h  ; horz total
105             dw      05d01h  ; horz displayed
106             dw      05e02h  ; start horz blanking
107             dw      09103h  ; end horz blanking
108             dw      06204h  ; start h sync
109             dw      08f05h  ; end h sync
110             dw      06206h  ; vertical total
111             dw      0f007h  ; overflow
112             dw      06109h  ; cell height
113             dw      0310fh  ;
114             dw      03710h  ; v sync start
115             dw      08911h  ; v sync end and protect cr0-cr7
116             dw      03312h  ; vertical displayed
117             dw      02f13h  ; offset
118             dw      00014h  ; turn off dword mode
119             dw      03c15h  ; v blank start
120             dw      05c16h  ; v blank end
121             dw      0eb17h  ; turn on byte mode
122             dw      376
123             dw      282
124
125
126 X320Y400    db      0h    ; dot clock
127             db      03      ; Number of CRTC Registers to update
128             dw      04009h  ; cell height
129             dw      00014h  ; turn off dword mode
130             dw      0e317h  ; turn on byte mode
131             dw      320     ; width
132             dw      400     ; height
133
134 X320Y480    db      0e3h    ; dotclock
135             db      10      ; Number of CRTC Registers to update
136             dw      00d06h  ; vertical total
137             dw      03e07h  ; overflow (bit 8 of vertical counts)
138             dw      04009h  ; cell height (2 to double-scan)
139             dw      0ea10h  ; v sync start
140             dw      0ac11h  ; v sync end and protect cr0-cr7
141             dw      0df12h  ; vertical displayed
142             dw      00014h  ; turn off dword mode
143             dw      0e715h  ; v blank start
144             dw      00616h  ; v blank end
145             dw      0e317h  ; turn on byte mode
146             dw      320     ; width
147             dw      480     ; height
148
149 X360Y400    db      0e7h    ; dot clock
150             db      09      ; Number of CRTC Registers to update
151             dw      06b00h  ; horz total
152             dw      05901h  ; horz displayed
153             dw      05a02h  ; start horz blanking
154             dw      08e03h  ; end horz blanking
155             dw      05e04h  ; start h sync
156             dw      08a05h  ; end h sync
157             dw      04009h  ; cell height
158             dw      00014h  ; turn off dword mode
159             dw      0e317h  ; turn on byte mode
160             dw      360     ; width
161             dw      400     ; height
162
163 X360Y480    db      0e7h
164             db      17
165             dw      06b00h  ; horz total
166             dw      05901h  ; horz displayed
167             dw      05a02h  ; start horz blanking
168             dw      08e03h  ; end horz blanking
169             dw      05e04h  ; start h sync
170             dw      08a05h  ; end h sync
171             dw      00d06h  ; vertical total
172             dw      03e07h  ; overflow
173             dw      04009h  ; cell height
174             dw      0ea10h  ; v sync start
175             dw      0ac11h  ; v sync end and protect cr0-cr7
176             dw      0df12h  ; vertical displayed
177             dw      02d13h  ; offset
178             dw      00014h  ; turn off dword mode
179             dw      0e715h  ; v blank start
180             dw      00616h  ; v blank end
181             dw      0e317h  ; turn on byte mode
182             dw      360
183             dw      480
184
185 X360Y360    db      0e7h
186             db      15
187             dw      06b00h  ; horz total
188             dw      05901h  ; horz displayed
189             dw      05a02h  ; start horz blanking
190             dw      08e03h  ; end horz blanking
191             dw      05e04h  ; start h sync
192             dw      08a05h  ; end h sync
193             dw      04009h  ; cell height
194             dw      08810h  ; v sync start
195             dw      08511h  ; v sync end and protect cr0-cr7
196             dw      06712h  ; vertical displayed
197             dw      02d13h  ; offset
198             dw      00014h  ; turn off dword mode
199             dw      06d15h  ; v blank start
200             dw      0ba16h  ; v blank end
201             dw      0e317h  ; turn on byte mode
202             dw      360
203             dw      360
204
205 X376Y308    db      0e7h
206             db      18
207             dw      06e00h  ; horz total
208             dw      05d01h  ; horz displayed
209             dw      05e02h  ; start horz blanking
210             dw      09103h  ; end horz blanking
211             dw      06204h  ; start h sync
212             dw      08f05h  ; end h sync
213             dw      06206h  ; vertical total
214             dw      00f07h  ; overflow
215             dw      04009h  ;
216             dw      0310fh  ;
217             dw      03710h  ; v sync start
218             dw      08911h  ; v sync end and protect cr0-cr7
219             dw      03312h  ; vertical displayed
220             dw      02f13h  ; offset
221             dw      00014h  ; turn off dword mode
222             dw      03c15h  ; v blank start
223             dw      05c16h  ; v blank end
224             dw      0e317h  ; turn on byte mode
225             dw      376
226             dw      308
227
228 X376Y564    db      0e7h
229             db      18
230             dw      06e00h  ; horz total
231             dw      05d01h  ; horz displayed
232             dw      05e02h  ; start horz blanking
233             dw      09103h  ; end horz blanking
234             dw      06204h  ; start h sync
235             dw      08f05h  ; end h sync
236             dw      06206h  ; vertical total
237             dw      0f007h  ; overflow
238             dw      06009h  ;
239             dw      0310fh  ;
240             dw      03710h  ; v sync start
241             dw      08911h  ; v sync end and protect cr0-cr7
242             dw      03312h  ; vertical displayed
243             dw      02f13h  ; offset
244             dw      00014h  ; turn off dword mode
245             dw      03c15h  ; v blank start
246             dw      05c16h  ; v blank end
247             dw      0e317h  ; turn on byte mode
248             dw      376
249             dw      564
250
251 %define LAST_X_MODE 11
252
253 ModeTable   dd      X320Y200
254             dd      X320Y240
255             dd      X360Y200
256             dd      X360Y240
257             dd      X376Y282
258             dd      X320Y400
259             dd      X320Y480
260             dd      X360Y400
261             dd      X360Y480
262             dd      X360Y360
263             dd      X376Y308
264             dd      X376Y564