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.
12 ; $Source: /cvs/cvsroot/d2x/arch/dos_tweak.inc,v $
15 ; $Date: 2001-01-29 13:35:08 $
17 ; Parameters used by modex.asm to set various modex resolutions.
19 ; $Log: not supported by cvs2svn $
20 ; Revision 1.1.1.1 2001/01/19 03:30:15 bradleyb
23 ; Revision 1.1.1.1 1999/06/14 21:58:45 donut
24 ; Import of d1x 1.37 source.
26 ; Revision 1.3 1993/11/16 11:28:09 john
27 ; *** empty log message ***
29 ; Revision 1.2 1993/10/15 16:23:18 john
32 ; Revision 1.1 1993/09/08 11:41:09 john
39 ; Mode X CRTC register tweaks for various resolutions
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
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
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
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
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
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
109 dw 06109h ; cell height
111 dw 03710h ; v sync start
112 dw 08911h ; v sync end and protect cr0-cr7
113 dw 03312h ; vertical displayed
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
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
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
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
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
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
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
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
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
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
214 dw 03710h ; v sync start
215 dw 08911h ; v sync end and protect cr0-cr7
216 dw 03312h ; vertical displayed
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
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
237 dw 03710h ; v sync start
238 dw 08911h ; v sync end and protect cr0-cr7
239 dw 03312h ; vertical displayed
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
248 %define LAST_X_MODE 11
250 ModeTable dd X320Y200