improved automake config. make dist, VPATH builds, ...
[btb/d2x.git] / unused / vga / 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-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
11
12 ; Mode X CRTC register tweaks for various resolutions
13
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
18                         dw      320     ; width
19                         dw      200     ; height
20
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
33                         dw      320     ; width
34                         dw      240     ; height
35
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
46                         dw      360     ; width
47                         dw      200     ; height
48
49
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
64                         dw      02d13h  ; offset;
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
69                         dw      360
70                         dw      240
71
72 X376Y282    db      0e7h
73                         db      18
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
81                         dw      0f007h  ; overflow
82                         dw      06109h  ; cell height
83                         dw      0310fh  ;
84                         dw      03710h  ; v sync start
85                         dw      08911h  ; v sync end and protect cr0-cr7
86                         dw      03312h  ; vertical displayed
87                         dw      02f13h  ; offset
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
92                         dw      376
93                         dw      282
94
95
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
101                         dw      320     ; width
102                         dw      400     ; height
103
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
116                         dw      320     ; width
117                         dw      480     ; height
118
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
130                         dw      360     ; width
131                         dw      400     ; height
132
133 X360Y480    db      0e7h
134                         db      17
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
142                         dw      03e07h  ; overflow
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
147                         dw      02d13h  ; offset
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
152                         dw      360
153                         dw      480
154
155 X360Y360    db      0e7h
156                         db      15
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
167                         dw      02d13h  ; offset
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
172                         dw      360
173                         dw      360
174
175 X376Y308    db      0e7h
176                         db      18
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
184                         dw      00f07h  ; overflow
185                         dw      04009h  ;
186                         dw      0310fh  ;
187                         dw      03710h  ; v sync start
188                         dw      08911h  ; v sync end and protect cr0-cr7
189                         dw      03312h  ; vertical displayed
190                         dw      02f13h  ; offset
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
195                         dw      376
196                         dw      308
197
198 X376Y564    db      0e7h
199                         db      18
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
207                         dw      0f007h  ; overflow
208                         dw      06009h  ;
209                         dw      0310fh  ;
210                         dw      03710h  ; v sync start
211                         dw      08911h  ; v sync end and protect cr0-cr7
212                         dw      03312h  ; vertical displayed
213                         dw      02f13h  ; offset
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
218                         dw      376
219                         dw      564
220
221 LAST_X_MODE         equ    11
222
223 ModeTable   dd      offset X320Y200
224                         dd      offset X320Y240
225                         dd      offset X360Y200
226                         dd      offset X360Y240
227                         dd      offset X376Y282
228                         dd      offset X320Y400
229                         dd      offset X320Y480
230                         dd      offset X360Y400
231                         dd      offset X360Y480
232                         dd      offset X360Y360
233                         dd      offset X376Y308
234                         dd      offset X376Y564
235