]> icculus.org git repositories - btb/d2x.git/blob - arch/dos/tweak.inc
remove rcs tags
[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 ;
13 ; Parameters used by modex.asm to set various modex resolutions.
14 ;
15
16 ;
17 ;
18
19
20 ; Mode X CRTC register tweaks for various resolutions
21
22 X320Y200    db      00      ; 0e3h    ; dot clock
23             db      02      ; Number of CRTC Registers to update
24             dw      00014h  ; turn off dword mode
25             dw      0e317h  ; turn on byte mode
26             dw      320     ; width
27             dw      200     ; height
28
29 X320Y240    db      0e3h    ; dot clock
30             db      10      ; Number of CRTC Registers to update
31             dw      00d06h  ; vertical total
32             dw      03e07h  ; overflow (bit 8 of vertical counts)
33             dw      04109h  ; cell height (2 to double-scan)
34             dw      0ea10h  ; v sync start
35             dw      0ac11h  ; v sync end and protect cr0-cr7
36             dw      0df12h  ; vertical displayed
37             dw      00014h  ; turn off dword mode
38             dw      0e715h  ; v blank start
39             dw      00616h  ; v blank end
40             dw      0e317h  ; turn on byte mode
41             dw      320     ; width
42             dw      240     ; height
43
44 X360Y200    db      0e7h    ; dot clock
45             db      08      ; Number of CRTC Registers to update
46             dw      06b00h  ; horz total
47             dw      05901h  ; horz displayed
48             dw      05a02h  ; start horz blanking
49             dw      08e03h  ; end horz blanking
50             dw      05e04h  ; start h sync
51             dw      08a05h  ; end h sync
52             dw      00014h  ; turn off dword mode
53             dw      0e317h  ; turn on byte mode
54             dw      360     ; width
55             dw      200     ; height
56
57
58 X360Y240    db      0e7h    ; dot clock
59             db      17      ; Number of CRTC Registers to update
60             dw      06b00h  ; horz total
61             dw      05901h  ; horz displayed
62             dw      05a02h  ; start horz blanking
63             dw      08e03h  ; end horz blanking
64             dw      05e04h  ; start h sync
65             dw      08a05h  ; end h sync
66             dw      00d06h  ; vertical total
67             dw      03e07h  ; overflow (bit 8 of vertical counts)
68             dw      04109h  ; cell height (2 to double-scan)
69             dw      0ea10h  ; v sync start
70             dw      0ac11h  ; v sync end and protect cr0-cr7
71             dw      0df12h  ; vertical displayed
72             dw      02d13h  ; offset;
73             dw      00014h  ; turn off dword mode
74             dw      0e715h  ; v blank start
75             dw      00616h  ; v blank end
76             dw      0e317h  ; turn on byte mode
77             dw      360
78             dw      240
79
80 X376Y282    db      0e7h
81             db      18
82             dw      06e00h  ; horz total
83             dw      05d01h  ; horz displayed
84             dw      05e02h  ; start horz blanking
85             dw      09103h  ; end horz blanking
86             dw      06204h  ; start h sync
87             dw      08f05h  ; end h sync
88             dw      06206h  ; vertical total
89             dw      0f007h  ; overflow
90             dw      06109h  ; cell height
91             dw      0310fh  ;
92             dw      03710h  ; v sync start
93             dw      08911h  ; v sync end and protect cr0-cr7
94             dw      03312h  ; vertical displayed
95             dw      02f13h  ; offset
96             dw      00014h  ; turn off dword mode
97             dw      03c15h  ; v blank start
98             dw      05c16h  ; v blank end
99             dw      0eb17h  ; turn on byte mode
100             dw      376
101             dw      282
102
103
104 X320Y400    db      0h    ; dot clock
105             db      03      ; Number of CRTC Registers to update
106             dw      04009h  ; cell height
107             dw      00014h  ; turn off dword mode
108             dw      0e317h  ; turn on byte mode
109             dw      320     ; width
110             dw      400     ; height
111
112 X320Y480    db      0e3h    ; dotclock
113             db      10      ; Number of CRTC Registers to update
114             dw      00d06h  ; vertical total
115             dw      03e07h  ; overflow (bit 8 of vertical counts)
116             dw      04009h  ; cell height (2 to double-scan)
117             dw      0ea10h  ; v sync start
118             dw      0ac11h  ; v sync end and protect cr0-cr7
119             dw      0df12h  ; vertical displayed
120             dw      00014h  ; turn off dword mode
121             dw      0e715h  ; v blank start
122             dw      00616h  ; v blank end
123             dw      0e317h  ; turn on byte mode
124             dw      320     ; width
125             dw      480     ; height
126
127 X360Y400    db      0e7h    ; dot clock
128             db      09      ; Number of CRTC Registers to update
129             dw      06b00h  ; horz total
130             dw      05901h  ; horz displayed
131             dw      05a02h  ; start horz blanking
132             dw      08e03h  ; end horz blanking
133             dw      05e04h  ; start h sync
134             dw      08a05h  ; end h sync
135             dw      04009h  ; cell height
136             dw      00014h  ; turn off dword mode
137             dw      0e317h  ; turn on byte mode
138             dw      360     ; width
139             dw      400     ; height
140
141 X360Y480    db      0e7h
142             db      17
143             dw      06b00h  ; horz total
144             dw      05901h  ; horz displayed
145             dw      05a02h  ; start horz blanking
146             dw      08e03h  ; end horz blanking
147             dw      05e04h  ; start h sync
148             dw      08a05h  ; end h sync
149             dw      00d06h  ; vertical total
150             dw      03e07h  ; overflow
151             dw      04009h  ; cell height
152             dw      0ea10h  ; v sync start
153             dw      0ac11h  ; v sync end and protect cr0-cr7
154             dw      0df12h  ; vertical displayed
155             dw      02d13h  ; offset
156             dw      00014h  ; turn off dword mode
157             dw      0e715h  ; v blank start
158             dw      00616h  ; v blank end
159             dw      0e317h  ; turn on byte mode
160             dw      360
161             dw      480
162
163 X360Y360    db      0e7h
164             db      15
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      04009h  ; cell height
172             dw      08810h  ; v sync start
173             dw      08511h  ; v sync end and protect cr0-cr7
174             dw      06712h  ; vertical displayed
175             dw      02d13h  ; offset
176             dw      00014h  ; turn off dword mode
177             dw      06d15h  ; v blank start
178             dw      0ba16h  ; v blank end
179             dw      0e317h  ; turn on byte mode
180             dw      360
181             dw      360
182
183 X376Y308    db      0e7h
184             db      18
185             dw      06e00h  ; horz total
186             dw      05d01h  ; horz displayed
187             dw      05e02h  ; start horz blanking
188             dw      09103h  ; end horz blanking
189             dw      06204h  ; start h sync
190             dw      08f05h  ; end h sync
191             dw      06206h  ; vertical total
192             dw      00f07h  ; overflow
193             dw      04009h  ;
194             dw      0310fh  ;
195             dw      03710h  ; v sync start
196             dw      08911h  ; v sync end and protect cr0-cr7
197             dw      03312h  ; vertical displayed
198             dw      02f13h  ; offset
199             dw      00014h  ; turn off dword mode
200             dw      03c15h  ; v blank start
201             dw      05c16h  ; v blank end
202             dw      0e317h  ; turn on byte mode
203             dw      376
204             dw      308
205
206 X376Y564    db      0e7h
207             db      18
208             dw      06e00h  ; horz total
209             dw      05d01h  ; horz displayed
210             dw      05e02h  ; start horz blanking
211             dw      09103h  ; end horz blanking
212             dw      06204h  ; start h sync
213             dw      08f05h  ; end h sync
214             dw      06206h  ; vertical total
215             dw      0f007h  ; overflow
216             dw      06009h  ;
217             dw      0310fh  ;
218             dw      03710h  ; v sync start
219             dw      08911h  ; v sync end and protect cr0-cr7
220             dw      03312h  ; vertical displayed
221             dw      02f13h  ; offset
222             dw      00014h  ; turn off dword mode
223             dw      03c15h  ; v blank start
224             dw      05c16h  ; v blank end
225             dw      0e317h  ; turn on byte mode
226             dw      376
227             dw      564
228
229 %define LAST_X_MODE 11
230
231 ModeTable   dd      X320Y200
232             dd      X320Y240
233             dd      X360Y200
234             dd      X360Y240
235             dd      X376Y282
236             dd      X320Y400
237             dd      X320Y480
238             dd      X360Y400
239             dd      X360Y480
240             dd      X360Y360
241             dd      X376Y308
242             dd      X376Y564