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-10-19 09:01:56 $
17 ; Parameters used by modex.asm to set various modex resolutions.
19 ; $Log: not supported by cvs2svn $
20 ; Revision 1.2 2001/01/29 13:35:08 bradleyb
21 ; Fixed build system, minor fixes
23 ; Revision 1.1.1.1 2001/01/19 03:30:15 bradleyb
26 ; Revision 1.1.1.1 1999/06/14 21:58:45 donut
27 ; Import of d1x 1.37 source.
29 ; Revision 1.3 1993/11/16 11:28:09 john
30 ; *** empty log message ***
32 ; Revision 1.2 1993/10/15 16:23:18 john
35 ; Revision 1.1 1993/09/08 11:41:09 john
42 ; Mode X CRTC register tweaks for various resolutions
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
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
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
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
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
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
112 dw 06109h ; cell height
114 dw 03710h ; v sync start
115 dw 08911h ; v sync end and protect cr0-cr7
116 dw 03312h ; vertical displayed
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
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
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
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
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
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
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
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
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
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
217 dw 03710h ; v sync start
218 dw 08911h ; v sync end and protect cr0-cr7
219 dw 03312h ; vertical displayed
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
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
240 dw 03710h ; v sync start
241 dw 08911h ; v sync end and protect cr0-cr7
242 dw 03312h ; vertical displayed
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
251 %define LAST_X_MODE 11
253 ModeTable dd X320Y200