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-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
12 ; Mode X CRTC register tweaks for various resolutions
14 X320Y200 db 00 ; 0e3h ; dot clock
15 db 02 ; Number of CRTC Registers to update
16 dw 00014h ; turn off dword mode
17 dw 0e317h ; turn on byte mode
21 X320Y240 db 0e3h ; dot clock
22 db 10 ; Number of CRTC Registers to update
23 dw 00d06h ; vertical total
24 dw 03e07h ; overflow (bit 8 of vertical counts)
25 dw 04109h ; cell height (2 to double-scan)
26 dw 0ea10h ; v sync start
27 dw 0ac11h ; v sync end and protect cr0-cr7
28 dw 0df12h ; vertical displayed
29 dw 00014h ; turn off dword mode
30 dw 0e715h ; v blank start
31 dw 00616h ; v blank end
32 dw 0e317h ; turn on byte mode
36 X360Y200 db 0e7h ; dot clock
37 db 08 ; Number of CRTC Registers to update
38 dw 06b00h ; horz total
39 dw 05901h ; horz displayed
40 dw 05a02h ; start horz blanking
41 dw 08e03h ; end horz blanking
42 dw 05e04h ; start h sync
43 dw 08a05h ; end h sync
44 dw 00014h ; turn off dword mode
45 dw 0e317h ; turn on byte mode
50 X360Y240 db 0e7h ; dot clock
51 db 17 ; Number of CRTC Registers to update
52 dw 06b00h ; horz total
53 dw 05901h ; horz displayed
54 dw 05a02h ; start horz blanking
55 dw 08e03h ; end horz blanking
56 dw 05e04h ; start h sync
57 dw 08a05h ; end h sync
58 dw 00d06h ; vertical total
59 dw 03e07h ; overflow (bit 8 of vertical counts)
60 dw 04109h ; cell height (2 to double-scan)
61 dw 0ea10h ; v sync start
62 dw 0ac11h ; v sync end and protect cr0-cr7
63 dw 0df12h ; vertical displayed
65 dw 00014h ; turn off dword mode
66 dw 0e715h ; v blank start
67 dw 00616h ; v blank end
68 dw 0e317h ; turn on byte mode
74 dw 06e00h ; horz total
75 dw 05d01h ; horz displayed
76 dw 05e02h ; start horz blanking
77 dw 09103h ; end horz blanking
78 dw 06204h ; start h sync
79 dw 08f05h ; end h sync
80 dw 06206h ; vertical total
82 dw 06109h ; cell height
84 dw 03710h ; v sync start
85 dw 08911h ; v sync end and protect cr0-cr7
86 dw 03312h ; vertical displayed
88 dw 00014h ; turn off dword mode
89 dw 03c15h ; v blank start
90 dw 05c16h ; v blank end
91 dw 0eb17h ; turn on byte mode
96 X320Y400 db 0h ; dot clock
97 db 03 ; Number of CRTC Registers to update
98 dw 04009h ; cell height
99 dw 00014h ; turn off dword mode
100 dw 0e317h ; turn on byte mode
104 X320Y480 db 0e3h ; dotclock
105 db 10 ; Number of CRTC Registers to update
106 dw 00d06h ; vertical total
107 dw 03e07h ; overflow (bit 8 of vertical counts)
108 dw 04009h ; cell height (2 to double-scan)
109 dw 0ea10h ; v sync start
110 dw 0ac11h ; v sync end and protect cr0-cr7
111 dw 0df12h ; vertical displayed
112 dw 00014h ; turn off dword mode
113 dw 0e715h ; v blank start
114 dw 00616h ; v blank end
115 dw 0e317h ; turn on byte mode
119 X360Y400 db 0e7h ; dot clock
120 db 09 ; Number of CRTC Registers to update
121 dw 06b00h ; horz total
122 dw 05901h ; horz displayed
123 dw 05a02h ; start horz blanking
124 dw 08e03h ; end horz blanking
125 dw 05e04h ; start h sync
126 dw 08a05h ; end h sync
127 dw 04009h ; cell height
128 dw 00014h ; turn off dword mode
129 dw 0e317h ; turn on byte mode
135 dw 06b00h ; horz total
136 dw 05901h ; horz displayed
137 dw 05a02h ; start horz blanking
138 dw 08e03h ; end horz blanking
139 dw 05e04h ; start h sync
140 dw 08a05h ; end h sync
141 dw 00d06h ; vertical total
143 dw 04009h ; cell height
144 dw 0ea10h ; v sync start
145 dw 0ac11h ; v sync end and protect cr0-cr7
146 dw 0df12h ; vertical displayed
148 dw 00014h ; turn off dword mode
149 dw 0e715h ; v blank start
150 dw 00616h ; v blank end
151 dw 0e317h ; turn on byte mode
157 dw 06b00h ; horz total
158 dw 05901h ; horz displayed
159 dw 05a02h ; start horz blanking
160 dw 08e03h ; end horz blanking
161 dw 05e04h ; start h sync
162 dw 08a05h ; end h sync
163 dw 04009h ; cell height
164 dw 08810h ; v sync start
165 dw 08511h ; v sync end and protect cr0-cr7
166 dw 06712h ; vertical displayed
168 dw 00014h ; turn off dword mode
169 dw 06d15h ; v blank start
170 dw 0ba16h ; v blank end
171 dw 0e317h ; turn on byte mode
177 dw 06e00h ; horz total
178 dw 05d01h ; horz displayed
179 dw 05e02h ; start horz blanking
180 dw 09103h ; end horz blanking
181 dw 06204h ; start h sync
182 dw 08f05h ; end h sync
183 dw 06206h ; vertical total
187 dw 03710h ; v sync start
188 dw 08911h ; v sync end and protect cr0-cr7
189 dw 03312h ; vertical displayed
191 dw 00014h ; turn off dword mode
192 dw 03c15h ; v blank start
193 dw 05c16h ; v blank end
194 dw 0e317h ; turn on byte mode
200 dw 06e00h ; horz total
201 dw 05d01h ; horz displayed
202 dw 05e02h ; start horz blanking
203 dw 09103h ; end horz blanking
204 dw 06204h ; start h sync
205 dw 08f05h ; end h sync
206 dw 06206h ; vertical total
210 dw 03710h ; v sync start
211 dw 08911h ; v sync end and protect cr0-cr7
212 dw 03312h ; vertical displayed
214 dw 00014h ; turn off dword mode
215 dw 03c15h ; v blank start
216 dw 05c16h ; v blank end
217 dw 0e317h ; turn on byte mode
223 ModeTable dd offset X320Y200