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