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.
13 ; Parameters used by modex.asm to set various modex resolutions.
20 ; Mode X CRTC register tweaks for various resolutions
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
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
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
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
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
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
90 dw 06109h ; cell height
92 dw 03710h ; v sync start
93 dw 08911h ; v sync end and protect cr0-cr7
94 dw 03312h ; vertical displayed
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
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
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
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
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
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
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
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
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
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
195 dw 03710h ; v sync start
196 dw 08911h ; v sync end and protect cr0-cr7
197 dw 03312h ; vertical displayed
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
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
218 dw 03710h ; v sync start
219 dw 08911h ; v sync end and protect cr0-cr7
220 dw 03312h ; vertical displayed
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
229 %define LAST_X_MODE 11
231 ModeTable dd X320Y200