1 /************************************************************************/
2 /*									*/
3 /* ���̤�ɽ��		16bpp						*/
4 /*									*/
5 /************************************************************************/
6 
7 #include <string.h>
8 
9 #include "quasi88.h"
10 #include "screen.h"
11 #include "screen-func.h"
12 #include "crtcdmac.h"
13 #include "memory.h"
14 #include "q8tk.h"
15 
16 
17 #ifdef	SUPPORT_16BPP
18 
19 #define TYPE		bit16
20 
21 #define SCREEN_WIDTH		WIDTH
22 #define SCREEN_HEIGHT		HEIGHT
23 #define SCREEN_SX		SCREEN_W
24 #define SCREEN_SY		SCREEN_H
25 #define SCREEN_TOP		screen_buf
26 #define SCREEN_START		screen_start
27 
28 #define COLOR_PIXEL(x)		(TYPE) color_pixel[ x ]
29 #define MIXED_PIXEL(a,b)	(TYPE) color_half_pixel[ a ][ b ]
30 #define BLACK			(TYPE) black_pixel
31 
32 /*===========================================================================
33  * ���ܥ�����
34  *===========================================================================*/
35 
36 /*----------------------------------------------------------------------
37  *			�� 200�饤��			ɸ��
38  *----------------------------------------------------------------------*/
39 #define NORMAL
40 
41 #define COLOR						/* ���顼640x200 */
42 #define		TEXT_WIDTH	80
43 #define		TEXT_HEIGHT		25
44 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x25_F_N_16
45 #define		VRAM2SCREEN_ALL			v2s_all_C80x25_F_N_16
46 #include					"screen-vram-full.h"
47 #define		TEXT_WIDTH	80
48 #define		TEXT_HEIGHT		20
49 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x20_F_N_16
50 #define		VRAM2SCREEN_ALL			v2s_all_C80x20_F_N_16
51 #include					"screen-vram-full.h"
52 #define		TEXT_WIDTH	40
53 #define		TEXT_HEIGHT		25
54 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x25_F_N_16
55 #define		VRAM2SCREEN_ALL			v2s_all_C40x25_F_N_16
56 #include					"screen-vram-full.h"
57 #define		TEXT_WIDTH	40
58 #define		TEXT_HEIGHT		20
59 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x20_F_N_16
60 #define		VRAM2SCREEN_ALL			v2s_all_C40x20_F_N_16
61 #include					"screen-vram-full.h"
62 #undef	COLOR
63 
64 #define MONO						/* ���	 640x200 */
65 #define		TEXT_WIDTH	80
66 #define		TEXT_HEIGHT		25
67 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x25_F_N_16
68 #define		VRAM2SCREEN_ALL			v2s_all_M80x25_F_N_16
69 #include					"screen-vram-full.h"
70 #define		TEXT_WIDTH	80
71 #define		TEXT_HEIGHT		20
72 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x20_F_N_16
73 #define		VRAM2SCREEN_ALL			v2s_all_M80x20_F_N_16
74 #include					"screen-vram-full.h"
75 #define		TEXT_WIDTH	40
76 #define		TEXT_HEIGHT		25
77 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x25_F_N_16
78 #define		VRAM2SCREEN_ALL			v2s_all_M40x25_F_N_16
79 #include					"screen-vram-full.h"
80 #define		TEXT_WIDTH	40
81 #define		TEXT_HEIGHT		20
82 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x20_F_N_16
83 #define		VRAM2SCREEN_ALL			v2s_all_M40x20_F_N_16
84 #include					"screen-vram-full.h"
85 #undef	MONO
86 
87 #define UNDISP						/* ��ɽ��640x200 */
88 #define		TEXT_WIDTH	80
89 #define		TEXT_HEIGHT		25
90 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x25_F_N_16
91 #define		VRAM2SCREEN_ALL			v2s_all_U80x25_F_N_16
92 #include					"screen-vram-full.h"
93 #define		TEXT_WIDTH	80
94 #define		TEXT_HEIGHT		20
95 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x20_F_N_16
96 #define		VRAM2SCREEN_ALL			v2s_all_U80x20_F_N_16
97 #include					"screen-vram-full.h"
98 #define		TEXT_WIDTH	40
99 #define		TEXT_HEIGHT		25
100 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x25_F_N_16
101 #define		VRAM2SCREEN_ALL			v2s_all_U40x25_F_N_16
102 #include					"screen-vram-full.h"
103 #define		TEXT_WIDTH	40
104 #define		TEXT_HEIGHT		20
105 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x20_F_N_16
106 #define		VRAM2SCREEN_ALL			v2s_all_U40x20_F_N_16
107 #include					"screen-vram-full.h"
108 #undef	UNDISP
109 
110 #undef	NORMAL
111 /*----------------------------------------------------------------------
112  *			�� 200�饤��			�饤�����å�
113  *----------------------------------------------------------------------*/
114 #define SKIPLINE
115 
116 #define COLOR						/* ���顼640x200 */
117 #define		TEXT_WIDTH	80
118 #define		TEXT_HEIGHT		25
119 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x25_F_S_16
120 #define		VRAM2SCREEN_ALL			v2s_all_C80x25_F_S_16
121 #include					"screen-vram-full.h"
122 #define		TEXT_WIDTH	80
123 #define		TEXT_HEIGHT		20
124 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x20_F_S_16
125 #define		VRAM2SCREEN_ALL			v2s_all_C80x20_F_S_16
126 #include					"screen-vram-full.h"
127 #define		TEXT_WIDTH	40
128 #define		TEXT_HEIGHT		25
129 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x25_F_S_16
130 #define		VRAM2SCREEN_ALL			v2s_all_C40x25_F_S_16
131 #include					"screen-vram-full.h"
132 #define		TEXT_WIDTH	40
133 #define		TEXT_HEIGHT		20
134 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x20_F_S_16
135 #define		VRAM2SCREEN_ALL			v2s_all_C40x20_F_S_16
136 #include					"screen-vram-full.h"
137 #undef	COLOR
138 
139 #define MONO						/* ���	 640x200 */
140 #define		TEXT_WIDTH	80
141 #define		TEXT_HEIGHT		25
142 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x25_F_S_16
143 #define		VRAM2SCREEN_ALL			v2s_all_M80x25_F_S_16
144 #include					"screen-vram-full.h"
145 #define		TEXT_WIDTH	80
146 #define		TEXT_HEIGHT		20
147 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x20_F_S_16
148 #define		VRAM2SCREEN_ALL			v2s_all_M80x20_F_S_16
149 #include					"screen-vram-full.h"
150 #define		TEXT_WIDTH	40
151 #define		TEXT_HEIGHT		25
152 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x25_F_S_16
153 #define		VRAM2SCREEN_ALL			v2s_all_M40x25_F_S_16
154 #include					"screen-vram-full.h"
155 #define		TEXT_WIDTH	40
156 #define		TEXT_HEIGHT		20
157 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x20_F_S_16
158 #define		VRAM2SCREEN_ALL			v2s_all_M40x20_F_S_16
159 #include					"screen-vram-full.h"
160 #undef	MONO
161 
162 #define UNDISP						/* ��ɽ��640x200 */
163 #define		TEXT_WIDTH	80
164 #define		TEXT_HEIGHT		25
165 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x25_F_S_16
166 #define		VRAM2SCREEN_ALL			v2s_all_U80x25_F_S_16
167 #include					"screen-vram-full.h"
168 #define		TEXT_WIDTH	80
169 #define		TEXT_HEIGHT		20
170 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x20_F_S_16
171 #define		VRAM2SCREEN_ALL			v2s_all_U80x20_F_S_16
172 #include					"screen-vram-full.h"
173 #define		TEXT_WIDTH	40
174 #define		TEXT_HEIGHT		25
175 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x25_F_S_16
176 #define		VRAM2SCREEN_ALL			v2s_all_U40x25_F_S_16
177 #include					"screen-vram-full.h"
178 #define		TEXT_WIDTH	40
179 #define		TEXT_HEIGHT		20
180 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x20_F_S_16
181 #define		VRAM2SCREEN_ALL			v2s_all_U40x20_F_S_16
182 #include					"screen-vram-full.h"
183 #undef	UNDISP
184 
185 #undef	SKIPLINE
186 /*----------------------------------------------------------------------
187  *			�� 200�饤��			�������졼��
188  *----------------------------------------------------------------------*/
189 #define INTERLACE
190 
191 #define COLOR						/* ���顼640x200 */
192 #define		TEXT_WIDTH	80
193 #define		TEXT_HEIGHT		25
194 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x25_F_I_16
195 #define		VRAM2SCREEN_ALL			v2s_all_C80x25_F_I_16
196 #include					"screen-vram-full.h"
197 #define		TEXT_WIDTH	80
198 #define		TEXT_HEIGHT		20
199 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x20_F_I_16
200 #define		VRAM2SCREEN_ALL			v2s_all_C80x20_F_I_16
201 #include					"screen-vram-full.h"
202 #define		TEXT_WIDTH	40
203 #define		TEXT_HEIGHT		25
204 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x25_F_I_16
205 #define		VRAM2SCREEN_ALL			v2s_all_C40x25_F_I_16
206 #include					"screen-vram-full.h"
207 #define		TEXT_WIDTH	40
208 #define		TEXT_HEIGHT		20
209 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x20_F_I_16
210 #define		VRAM2SCREEN_ALL			v2s_all_C40x20_F_I_16
211 #include					"screen-vram-full.h"
212 #undef	COLOR
213 
214 #define MONO						/* ���	 640x200 */
215 #define		TEXT_WIDTH	80
216 #define		TEXT_HEIGHT		25
217 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x25_F_I_16
218 #define		VRAM2SCREEN_ALL			v2s_all_M80x25_F_I_16
219 #include					"screen-vram-full.h"
220 #define		TEXT_WIDTH	80
221 #define		TEXT_HEIGHT		20
222 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x20_F_I_16
223 #define		VRAM2SCREEN_ALL			v2s_all_M80x20_F_I_16
224 #include					"screen-vram-full.h"
225 #define		TEXT_WIDTH	40
226 #define		TEXT_HEIGHT		25
227 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x25_F_I_16
228 #define		VRAM2SCREEN_ALL			v2s_all_M40x25_F_I_16
229 #include					"screen-vram-full.h"
230 #define		TEXT_WIDTH	40
231 #define		TEXT_HEIGHT		20
232 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x20_F_I_16
233 #define		VRAM2SCREEN_ALL			v2s_all_M40x20_F_I_16
234 #include					"screen-vram-full.h"
235 #undef	MONO
236 
237 #define UNDISP						/* ��ɽ��640x200 */
238 #define		TEXT_WIDTH	80
239 #define		TEXT_HEIGHT		25
240 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x25_F_I_16
241 #define		VRAM2SCREEN_ALL			v2s_all_U80x25_F_I_16
242 #include					"screen-vram-full.h"
243 #define		TEXT_WIDTH	80
244 #define		TEXT_HEIGHT		20
245 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x20_F_I_16
246 #define		VRAM2SCREEN_ALL			v2s_all_U80x20_F_I_16
247 #include					"screen-vram-full.h"
248 #define		TEXT_WIDTH	40
249 #define		TEXT_HEIGHT		25
250 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x25_F_I_16
251 #define		VRAM2SCREEN_ALL			v2s_all_U40x25_F_I_16
252 #include					"screen-vram-full.h"
253 #define		TEXT_WIDTH	40
254 #define		TEXT_HEIGHT		20
255 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x20_F_I_16
256 #define		VRAM2SCREEN_ALL			v2s_all_U40x20_F_I_16
257 #include					"screen-vram-full.h"
258 #undef	UNDISP
259 
260 #undef	INTERLACE
261 /*----------------------------------------------------------------------
262  *			�� 400�饤��			ɸ��
263  *----------------------------------------------------------------------*/
264 #define HIRESO						/* ���	 640x400 */
265 
266 #define		TEXT_WIDTH	80
267 #define		TEXT_HEIGHT		25
268 #define		VRAM2SCREEN_DIFF		v2s_dif_H80x25_F_N_16
269 #define		VRAM2SCREEN_ALL			v2s_all_H80x25_F_N_16
270 #include					"screen-vram-full.h"
271 #define		TEXT_WIDTH	80
272 #define		TEXT_HEIGHT		20
273 #define		VRAM2SCREEN_DIFF		v2s_dif_H80x20_F_N_16
274 #define		VRAM2SCREEN_ALL			v2s_all_H80x20_F_N_16
275 #include					"screen-vram-full.h"
276 #define		TEXT_WIDTH	40
277 #define		TEXT_HEIGHT		25
278 #define		VRAM2SCREEN_DIFF		v2s_dif_H40x25_F_N_16
279 #define		VRAM2SCREEN_ALL			v2s_all_H40x25_F_N_16
280 #include					"screen-vram-full.h"
281 #define		TEXT_WIDTH	40
282 #define		TEXT_HEIGHT		20
283 #define		VRAM2SCREEN_DIFF		v2s_dif_H40x20_F_N_16
284 #define		VRAM2SCREEN_ALL			v2s_all_H40x20_F_N_16
285 #include					"screen-vram-full.h"
286 
287 #undef	HIRESO
288 
289 /*===========================================================================
290  * Ⱦʬ������
291  *===========================================================================*/
292 
293 /*----------------------------------------------------------------------
294  *			�� 200�饤��			ɸ��
295  *----------------------------------------------------------------------*/
296 #define NORMAL
297 
298 #define COLOR						/* ���顼640x200 */
299 #define		TEXT_WIDTH	80
300 #define		TEXT_HEIGHT		25
301 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x25_H_N_16
302 #define		VRAM2SCREEN_ALL			v2s_all_C80x25_H_N_16
303 #include					"screen-vram-half.h"
304 #define		TEXT_WIDTH	80
305 #define		TEXT_HEIGHT		20
306 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x20_H_N_16
307 #define		VRAM2SCREEN_ALL			v2s_all_C80x20_H_N_16
308 #include					"screen-vram-half.h"
309 #define		TEXT_WIDTH	40
310 #define		TEXT_HEIGHT		25
311 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x25_H_N_16
312 #define		VRAM2SCREEN_ALL			v2s_all_C40x25_H_N_16
313 #include					"screen-vram-half.h"
314 #define		TEXT_WIDTH	40
315 #define		TEXT_HEIGHT		20
316 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x20_H_N_16
317 #define		VRAM2SCREEN_ALL			v2s_all_C40x20_H_N_16
318 #include					"screen-vram-half.h"
319 #undef	COLOR
320 
321 #define MONO						/* ���	 640x200 */
322 #define		TEXT_WIDTH	80
323 #define		TEXT_HEIGHT		25
324 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x25_H_N_16
325 #define		VRAM2SCREEN_ALL			v2s_all_M80x25_H_N_16
326 #include					"screen-vram-half.h"
327 #define		TEXT_WIDTH	80
328 #define		TEXT_HEIGHT		20
329 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x20_H_N_16
330 #define		VRAM2SCREEN_ALL			v2s_all_M80x20_H_N_16
331 #include					"screen-vram-half.h"
332 #define		TEXT_WIDTH	40
333 #define		TEXT_HEIGHT		25
334 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x25_H_N_16
335 #define		VRAM2SCREEN_ALL			v2s_all_M40x25_H_N_16
336 #include					"screen-vram-half.h"
337 #define		TEXT_WIDTH	40
338 #define		TEXT_HEIGHT		20
339 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x20_H_N_16
340 #define		VRAM2SCREEN_ALL			v2s_all_M40x20_H_N_16
341 #include					"screen-vram-half.h"
342 #undef	MONO
343 
344 #define UNDISP						/* ��ɽ��640x200 */
345 
346 #define		TEXT_WIDTH	80
347 #define		TEXT_HEIGHT		25
348 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x25_H_N_16
349 #define		VRAM2SCREEN_ALL			v2s_all_U80x25_H_N_16
350 #include					"screen-vram-half.h"
351 #define		TEXT_WIDTH	80
352 #define		TEXT_HEIGHT		20
353 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x20_H_N_16
354 #define		VRAM2SCREEN_ALL			v2s_all_U80x20_H_N_16
355 #include					"screen-vram-half.h"
356 #define		TEXT_WIDTH	40
357 #define		TEXT_HEIGHT		25
358 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x25_H_N_16
359 #define		VRAM2SCREEN_ALL			v2s_all_U40x25_H_N_16
360 #include					"screen-vram-half.h"
361 #define		TEXT_WIDTH	40
362 #define		TEXT_HEIGHT		20
363 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x20_H_N_16
364 #define		VRAM2SCREEN_ALL			v2s_all_U40x20_H_N_16
365 #include					"screen-vram-half.h"
366 #undef	UNDISP
367 
368 #undef	NORMAL
369 /*----------------------------------------------------------------------
370  *			�� 200�饤��			���䴰
371  *----------------------------------------------------------------------*/
372 #define INTERPOLATE
373 
374 #define COLOR						/* ���顼640x200 */
375 #define		TEXT_WIDTH	80
376 #define		TEXT_HEIGHT		25
377 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x25_H_P_16
378 #define		VRAM2SCREEN_ALL			v2s_all_C80x25_H_P_16
379 #include					"screen-vram-half.h"
380 #define		TEXT_WIDTH	80
381 #define		TEXT_HEIGHT		20
382 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x20_H_P_16
383 #define		VRAM2SCREEN_ALL			v2s_all_C80x20_H_P_16
384 #include					"screen-vram-half.h"
385 #define		TEXT_WIDTH	40
386 #define		TEXT_HEIGHT		25
387 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x25_H_P_16
388 #define		VRAM2SCREEN_ALL			v2s_all_C40x25_H_P_16
389 #include					"screen-vram-half.h"
390 #define		TEXT_WIDTH	40
391 #define		TEXT_HEIGHT		20
392 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x20_H_P_16
393 #define		VRAM2SCREEN_ALL			v2s_all_C40x20_H_P_16
394 #include					"screen-vram-half.h"
395 #undef	COLOR
396 
397 #define MONO						/* ���	 640x200 */
398 #define		TEXT_WIDTH	80
399 #define		TEXT_HEIGHT		25
400 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x25_H_P_16
401 #define		VRAM2SCREEN_ALL			v2s_all_M80x25_H_P_16
402 #include					"screen-vram-half.h"
403 #define		TEXT_WIDTH	80
404 #define		TEXT_HEIGHT		20
405 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x20_H_P_16
406 #define		VRAM2SCREEN_ALL			v2s_all_M80x20_H_P_16
407 #include					"screen-vram-half.h"
408 #define		TEXT_WIDTH	40
409 #define		TEXT_HEIGHT		25
410 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x25_H_P_16
411 #define		VRAM2SCREEN_ALL			v2s_all_M40x25_H_P_16
412 #include					"screen-vram-half.h"
413 #define		TEXT_WIDTH	40
414 #define		TEXT_HEIGHT		20
415 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x20_H_P_16
416 #define		VRAM2SCREEN_ALL			v2s_all_M40x20_H_P_16
417 #include					"screen-vram-half.h"
418 #undef	MONO
419 
420 #define UNDISP						/* ��ɽ��640x200 */
421 #define		TEXT_WIDTH	80
422 #define		TEXT_HEIGHT		25
423 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x25_H_P_16
424 #define		VRAM2SCREEN_ALL			v2s_all_U80x25_H_P_16
425 #include					"screen-vram-half.h"
426 #define		TEXT_WIDTH	80
427 #define		TEXT_HEIGHT		20
428 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x20_H_P_16
429 #define		VRAM2SCREEN_ALL			v2s_all_U80x20_H_P_16
430 #include					"screen-vram-half.h"
431 #define		TEXT_WIDTH	40
432 #define		TEXT_HEIGHT		25
433 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x25_H_P_16
434 #define		VRAM2SCREEN_ALL			v2s_all_U40x25_H_P_16
435 #include					"screen-vram-half.h"
436 #define		TEXT_WIDTH	40
437 #define		TEXT_HEIGHT		20
438 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x20_H_P_16
439 #define		VRAM2SCREEN_ALL			v2s_all_U40x20_H_P_16
440 #include					"screen-vram-half.h"
441 #undef	UNDISP
442 
443 #undef	INTERPOLATE
444 /*----------------------------------------------------------------------
445  *			�� 400�饤��			ɸ��
446  *----------------------------------------------------------------------*/
447 #define HIRESO						/* ���	 640x400 */
448 
449 #define		TEXT_WIDTH	80
450 #define		TEXT_HEIGHT		25
451 #define		VRAM2SCREEN_DIFF		v2s_dif_H80x25_H_N_16
452 #define		VRAM2SCREEN_ALL			v2s_all_H80x25_H_N_16
453 #include					"screen-vram-half.h"
454 #define		TEXT_WIDTH	80
455 #define		TEXT_HEIGHT		20
456 #define		VRAM2SCREEN_DIFF		v2s_dif_H80x20_H_N_16
457 #define		VRAM2SCREEN_ALL			v2s_all_H80x20_H_N_16
458 #include					"screen-vram-half.h"
459 #define		TEXT_WIDTH	40
460 #define		TEXT_HEIGHT		25
461 #define		VRAM2SCREEN_DIFF		v2s_dif_H40x25_H_N_16
462 #define		VRAM2SCREEN_ALL			v2s_all_H40x25_H_N_16
463 #include					"screen-vram-half.h"
464 #define		TEXT_WIDTH	40
465 #define		TEXT_HEIGHT		20
466 #define		VRAM2SCREEN_DIFF		v2s_dif_H40x20_H_N_16
467 #define		VRAM2SCREEN_ALL			v2s_all_H40x20_H_N_16
468 #include					"screen-vram-half.h"
469 
470 #undef	HIRESO
471 
472 /*===========================================================================
473  * ���ܥ�����
474  *===========================================================================*/
475 #ifdef	SUPPORT_DOUBLE
476 /*----------------------------------------------------------------------
477  *			�� 200�饤��			ɸ��
478  *----------------------------------------------------------------------*/
479 #define NORMAL
480 
481 #define COLOR						/* ���顼640x200 */
482 #define		TEXT_WIDTH	80
483 #define		TEXT_HEIGHT		25
484 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x25_D_N_16
485 #define		VRAM2SCREEN_ALL			v2s_all_C80x25_D_N_16
486 #include					"screen-vram-double.h"
487 #define		TEXT_WIDTH	80
488 #define		TEXT_HEIGHT		20
489 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x20_D_N_16
490 #define		VRAM2SCREEN_ALL			v2s_all_C80x20_D_N_16
491 #include					"screen-vram-double.h"
492 #define		TEXT_WIDTH	40
493 #define		TEXT_HEIGHT		25
494 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x25_D_N_16
495 #define		VRAM2SCREEN_ALL			v2s_all_C40x25_D_N_16
496 #include					"screen-vram-double.h"
497 #define		TEXT_WIDTH	40
498 #define		TEXT_HEIGHT		20
499 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x20_D_N_16
500 #define		VRAM2SCREEN_ALL			v2s_all_C40x20_D_N_16
501 #include					"screen-vram-double.h"
502 #undef	COLOR
503 
504 #define MONO						/* ���	 640x200 */
505 #define		TEXT_WIDTH	80
506 #define		TEXT_HEIGHT		25
507 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x25_D_N_16
508 #define		VRAM2SCREEN_ALL			v2s_all_M80x25_D_N_16
509 #include					"screen-vram-double.h"
510 #define		TEXT_WIDTH	80
511 #define		TEXT_HEIGHT		20
512 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x20_D_N_16
513 #define		VRAM2SCREEN_ALL			v2s_all_M80x20_D_N_16
514 #include					"screen-vram-double.h"
515 #define		TEXT_WIDTH	40
516 #define		TEXT_HEIGHT		25
517 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x25_D_N_16
518 #define		VRAM2SCREEN_ALL			v2s_all_M40x25_D_N_16
519 #include					"screen-vram-double.h"
520 #define		TEXT_WIDTH	40
521 #define		TEXT_HEIGHT		20
522 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x20_D_N_16
523 #define		VRAM2SCREEN_ALL			v2s_all_M40x20_D_N_16
524 #include					"screen-vram-double.h"
525 #undef	MONO
526 
527 #define UNDISP						/* ��ɽ��640x200 */
528 #define		TEXT_WIDTH	80
529 #define		TEXT_HEIGHT		25
530 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x25_D_N_16
531 #define		VRAM2SCREEN_ALL			v2s_all_U80x25_D_N_16
532 #include					"screen-vram-double.h"
533 #define		TEXT_WIDTH	80
534 #define		TEXT_HEIGHT		20
535 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x20_D_N_16
536 #define		VRAM2SCREEN_ALL			v2s_all_U80x20_D_N_16
537 #include					"screen-vram-double.h"
538 #define		TEXT_WIDTH	40
539 #define		TEXT_HEIGHT		25
540 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x25_D_N_16
541 #define		VRAM2SCREEN_ALL			v2s_all_U40x25_D_N_16
542 #include					"screen-vram-double.h"
543 #define		TEXT_WIDTH	40
544 #define		TEXT_HEIGHT		20
545 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x20_D_N_16
546 #define		VRAM2SCREEN_ALL			v2s_all_U40x20_D_N_16
547 #include					"screen-vram-double.h"
548 #undef	UNDISP
549 
550 #undef	NORMAL
551 /*----------------------------------------------------------------------
552  *			�� 200�饤��			�饤�����å�
553  *----------------------------------------------------------------------*/
554 #define SKIPLINE
555 
556 #define COLOR						/* ���顼640x200 */
557 #define		TEXT_WIDTH	80
558 #define		TEXT_HEIGHT		25
559 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x25_D_S_16
560 #define		VRAM2SCREEN_ALL			v2s_all_C80x25_D_S_16
561 #include					"screen-vram-double.h"
562 #define		TEXT_WIDTH	80
563 #define		TEXT_HEIGHT		20
564 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x20_D_S_16
565 #define		VRAM2SCREEN_ALL			v2s_all_C80x20_D_S_16
566 #include					"screen-vram-double.h"
567 #define		TEXT_WIDTH	40
568 #define		TEXT_HEIGHT		25
569 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x25_D_S_16
570 #define		VRAM2SCREEN_ALL			v2s_all_C40x25_D_S_16
571 #include					"screen-vram-double.h"
572 #define		TEXT_WIDTH	40
573 #define		TEXT_HEIGHT		20
574 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x20_D_S_16
575 #define		VRAM2SCREEN_ALL			v2s_all_C40x20_D_S_16
576 #include					"screen-vram-double.h"
577 #undef	COLOR
578 
579 #define MONO						/* ���	 640x200 */
580 #define		TEXT_WIDTH	80
581 #define		TEXT_HEIGHT		25
582 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x25_D_S_16
583 #define		VRAM2SCREEN_ALL			v2s_all_M80x25_D_S_16
584 #include					"screen-vram-double.h"
585 #define		TEXT_WIDTH	80
586 #define		TEXT_HEIGHT		20
587 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x20_D_S_16
588 #define		VRAM2SCREEN_ALL			v2s_all_M80x20_D_S_16
589 #include					"screen-vram-double.h"
590 #define		TEXT_WIDTH	40
591 #define		TEXT_HEIGHT		25
592 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x25_D_S_16
593 #define		VRAM2SCREEN_ALL			v2s_all_M40x25_D_S_16
594 #include					"screen-vram-double.h"
595 #define		TEXT_WIDTH	40
596 #define		TEXT_HEIGHT		20
597 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x20_D_S_16
598 #define		VRAM2SCREEN_ALL			v2s_all_M40x20_D_S_16
599 #include					"screen-vram-double.h"
600 #undef	MONO
601 
602 #define UNDISP						/* ��ɽ��640x200 */
603 #define		TEXT_WIDTH	80
604 #define		TEXT_HEIGHT		25
605 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x25_D_S_16
606 #define		VRAM2SCREEN_ALL			v2s_all_U80x25_D_S_16
607 #include					"screen-vram-double.h"
608 #define		TEXT_WIDTH	80
609 #define		TEXT_HEIGHT		20
610 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x20_D_S_16
611 #define		VRAM2SCREEN_ALL			v2s_all_U80x20_D_S_16
612 #include					"screen-vram-double.h"
613 #define		TEXT_WIDTH	40
614 #define		TEXT_HEIGHT		25
615 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x25_D_S_16
616 #define		VRAM2SCREEN_ALL			v2s_all_U40x25_D_S_16
617 #include					"screen-vram-double.h"
618 #define		TEXT_WIDTH	40
619 #define		TEXT_HEIGHT		20
620 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x20_D_S_16
621 #define		VRAM2SCREEN_ALL			v2s_all_U40x20_D_S_16
622 #include					"screen-vram-double.h"
623 #undef	UNDISP
624 
625 #undef	SKIPLINE
626 /*----------------------------------------------------------------------
627  *			�� 200�饤��			�������졼��
628  *----------------------------------------------------------------------*/
629 #define INTERLACE
630 
631 #define COLOR						/* ���顼640x200 */
632 #define		TEXT_WIDTH	80
633 #define		TEXT_HEIGHT		25
634 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x25_D_I_16
635 #define		VRAM2SCREEN_ALL			v2s_all_C80x25_D_I_16
636 #include					"screen-vram-double.h"
637 #define		TEXT_WIDTH	80
638 #define		TEXT_HEIGHT		20
639 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x20_D_I_16
640 #define		VRAM2SCREEN_ALL			v2s_all_C80x20_D_I_16
641 #include					"screen-vram-double.h"
642 #define		TEXT_WIDTH	40
643 #define		TEXT_HEIGHT		25
644 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x25_D_I_16
645 #define		VRAM2SCREEN_ALL			v2s_all_C40x25_D_I_16
646 #include					"screen-vram-double.h"
647 #define		TEXT_WIDTH	40
648 #define		TEXT_HEIGHT		20
649 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x20_D_I_16
650 #define		VRAM2SCREEN_ALL			v2s_all_C40x20_D_I_16
651 #include					"screen-vram-double.h"
652 #undef	COLOR
653 
654 #define MONO						/* ���	 640x200 */
655 #define		TEXT_WIDTH	80
656 #define		TEXT_HEIGHT		25
657 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x25_D_I_16
658 #define		VRAM2SCREEN_ALL			v2s_all_M80x25_D_I_16
659 #include					"screen-vram-double.h"
660 #define		TEXT_WIDTH	80
661 #define		TEXT_HEIGHT		20
662 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x20_D_I_16
663 #define		VRAM2SCREEN_ALL			v2s_all_M80x20_D_I_16
664 #include					"screen-vram-double.h"
665 #define		TEXT_WIDTH	40
666 #define		TEXT_HEIGHT		25
667 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x25_D_I_16
668 #define		VRAM2SCREEN_ALL			v2s_all_M40x25_D_I_16
669 #include					"screen-vram-double.h"
670 #define		TEXT_WIDTH	40
671 #define		TEXT_HEIGHT		20
672 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x20_D_I_16
673 #define		VRAM2SCREEN_ALL			v2s_all_M40x20_D_I_16
674 #include					"screen-vram-double.h"
675 #undef	MONO
676 
677 #define UNDISP						/* ��ɽ��640x200 */
678 #define		TEXT_WIDTH	80
679 #define		TEXT_HEIGHT		25
680 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x25_D_I_16
681 #define		VRAM2SCREEN_ALL			v2s_all_U80x25_D_I_16
682 #include					"screen-vram-double.h"
683 #define		TEXT_WIDTH	80
684 #define		TEXT_HEIGHT		20
685 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x20_D_I_16
686 #define		VRAM2SCREEN_ALL			v2s_all_U80x20_D_I_16
687 #include					"screen-vram-double.h"
688 #define		TEXT_WIDTH	40
689 #define		TEXT_HEIGHT		25
690 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x25_D_I_16
691 #define		VRAM2SCREEN_ALL			v2s_all_U40x25_D_I_16
692 #include					"screen-vram-double.h"
693 #define		TEXT_WIDTH	40
694 #define		TEXT_HEIGHT		20
695 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x20_D_I_16
696 #define		VRAM2SCREEN_ALL			v2s_all_U40x20_D_I_16
697 #include					"screen-vram-double.h"
698 #undef	UNDISP
699 
700 #undef	INTERLACE
701 /*----------------------------------------------------------------------
702  *			�� 400�饤��			ɸ��
703  *----------------------------------------------------------------------*/
704 #define HIRESO						/* ���	 640x400 */
705 
706 #define		TEXT_WIDTH	80
707 #define		TEXT_HEIGHT		25
708 #define		VRAM2SCREEN_DIFF		v2s_dif_H80x25_D_N_16
709 #define		VRAM2SCREEN_ALL			v2s_all_H80x25_D_N_16
710 #include					"screen-vram-double.h"
711 #define		TEXT_WIDTH	80
712 #define		TEXT_HEIGHT		20
713 #define		VRAM2SCREEN_DIFF		v2s_dif_H80x20_D_N_16
714 #define		VRAM2SCREEN_ALL			v2s_all_H80x20_D_N_16
715 #include					"screen-vram-double.h"
716 #define		TEXT_WIDTH	40
717 #define		TEXT_HEIGHT		25
718 #define		VRAM2SCREEN_DIFF		v2s_dif_H40x25_D_N_16
719 #define		VRAM2SCREEN_ALL			v2s_all_H40x25_D_N_16
720 #include					"screen-vram-double.h"
721 #define		TEXT_WIDTH	40
722 #define		TEXT_HEIGHT		20
723 #define		VRAM2SCREEN_DIFF		v2s_dif_H40x20_D_N_16
724 #define		VRAM2SCREEN_ALL			v2s_all_H40x20_D_N_16
725 #include					"screen-vram-double.h"
726 #undef	HIRESO
727 
728 #endif	/* SUPPORT_DOUBLE */
729 
730 
731 #define	DIRECT
732 /*===========================================================================
733  * ���ܥ�����
734  *===========================================================================*/
735 
736 /*----------------------------------------------------------------------
737  *			�� 200�饤��			ɸ��
738  *----------------------------------------------------------------------*/
739 #define NORMAL
740 
741 #define COLOR						/* ���顼640x200 */
742 #define		TEXT_WIDTH	80
743 #define		TEXT_HEIGHT		25
744 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x25_F_N_16_d
745 #define		VRAM2SCREEN_ALL			v2s_all_C80x25_F_N_16_d
746 #include					"screen-vram-full.h"
747 #define		TEXT_WIDTH	80
748 #define		TEXT_HEIGHT		20
749 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x20_F_N_16_d
750 #define		VRAM2SCREEN_ALL			v2s_all_C80x20_F_N_16_d
751 #include					"screen-vram-full.h"
752 #define		TEXT_WIDTH	40
753 #define		TEXT_HEIGHT		25
754 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x25_F_N_16_d
755 #define		VRAM2SCREEN_ALL			v2s_all_C40x25_F_N_16_d
756 #include					"screen-vram-full.h"
757 #define		TEXT_WIDTH	40
758 #define		TEXT_HEIGHT		20
759 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x20_F_N_16_d
760 #define		VRAM2SCREEN_ALL			v2s_all_C40x20_F_N_16_d
761 #include					"screen-vram-full.h"
762 #undef	COLOR
763 
764 #define MONO						/* ���	 640x200 */
765 #define		TEXT_WIDTH	80
766 #define		TEXT_HEIGHT		25
767 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x25_F_N_16_d
768 #define		VRAM2SCREEN_ALL			v2s_all_M80x25_F_N_16_d
769 #include					"screen-vram-full.h"
770 #define		TEXT_WIDTH	80
771 #define		TEXT_HEIGHT		20
772 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x20_F_N_16_d
773 #define		VRAM2SCREEN_ALL			v2s_all_M80x20_F_N_16_d
774 #include					"screen-vram-full.h"
775 #define		TEXT_WIDTH	40
776 #define		TEXT_HEIGHT		25
777 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x25_F_N_16_d
778 #define		VRAM2SCREEN_ALL			v2s_all_M40x25_F_N_16_d
779 #include					"screen-vram-full.h"
780 #define		TEXT_WIDTH	40
781 #define		TEXT_HEIGHT		20
782 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x20_F_N_16_d
783 #define		VRAM2SCREEN_ALL			v2s_all_M40x20_F_N_16_d
784 #include					"screen-vram-full.h"
785 #undef	MONO
786 
787 #define UNDISP						/* ��ɽ��640x200 */
788 #define		TEXT_WIDTH	80
789 #define		TEXT_HEIGHT		25
790 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x25_F_N_16_d
791 #define		VRAM2SCREEN_ALL			v2s_all_U80x25_F_N_16_d
792 #include					"screen-vram-full.h"
793 #define		TEXT_WIDTH	80
794 #define		TEXT_HEIGHT		20
795 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x20_F_N_16_d
796 #define		VRAM2SCREEN_ALL			v2s_all_U80x20_F_N_16_d
797 #include					"screen-vram-full.h"
798 #define		TEXT_WIDTH	40
799 #define		TEXT_HEIGHT		25
800 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x25_F_N_16_d
801 #define		VRAM2SCREEN_ALL			v2s_all_U40x25_F_N_16_d
802 #include					"screen-vram-full.h"
803 #define		TEXT_WIDTH	40
804 #define		TEXT_HEIGHT		20
805 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x20_F_N_16_d
806 #define		VRAM2SCREEN_ALL			v2s_all_U40x20_F_N_16_d
807 #include					"screen-vram-full.h"
808 #undef	UNDISP
809 
810 #undef	NORMAL
811 
812 /*===========================================================================
813  * ���ܥ�����
814  *===========================================================================*/
815 #ifdef	SUPPORT_DOUBLE
816 /*----------------------------------------------------------------------
817  *			�� 200�饤��			ɸ��
818  *----------------------------------------------------------------------*/
819 #define NORMAL
820 
821 #define COLOR						/* ���顼640x200 */
822 #define		TEXT_WIDTH	80
823 #define		TEXT_HEIGHT		25
824 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x25_D_N_16_d
825 #define		VRAM2SCREEN_ALL			v2s_all_C80x25_D_N_16_d
826 #include					"screen-vram-double.h"
827 #define		TEXT_WIDTH	80
828 #define		TEXT_HEIGHT		20
829 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x20_D_N_16_d
830 #define		VRAM2SCREEN_ALL			v2s_all_C80x20_D_N_16_d
831 #include					"screen-vram-double.h"
832 #define		TEXT_WIDTH	40
833 #define		TEXT_HEIGHT		25
834 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x25_D_N_16_d
835 #define		VRAM2SCREEN_ALL			v2s_all_C40x25_D_N_16_d
836 #include					"screen-vram-double.h"
837 #define		TEXT_WIDTH	40
838 #define		TEXT_HEIGHT		20
839 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x20_D_N_16_d
840 #define		VRAM2SCREEN_ALL			v2s_all_C40x20_D_N_16_d
841 #include					"screen-vram-double.h"
842 #undef	COLOR
843 
844 #define MONO						/* ���	 640x200 */
845 #define		TEXT_WIDTH	80
846 #define		TEXT_HEIGHT		25
847 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x25_D_N_16_d
848 #define		VRAM2SCREEN_ALL			v2s_all_M80x25_D_N_16_d
849 #include					"screen-vram-double.h"
850 #define		TEXT_WIDTH	80
851 #define		TEXT_HEIGHT		20
852 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x20_D_N_16_d
853 #define		VRAM2SCREEN_ALL			v2s_all_M80x20_D_N_16_d
854 #include					"screen-vram-double.h"
855 #define		TEXT_WIDTH	40
856 #define		TEXT_HEIGHT		25
857 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x25_D_N_16_d
858 #define		VRAM2SCREEN_ALL			v2s_all_M40x25_D_N_16_d
859 #include					"screen-vram-double.h"
860 #define		TEXT_WIDTH	40
861 #define		TEXT_HEIGHT		20
862 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x20_D_N_16_d
863 #define		VRAM2SCREEN_ALL			v2s_all_M40x20_D_N_16_d
864 #include					"screen-vram-double.h"
865 #undef	MONO
866 
867 #define UNDISP						/* ��ɽ��640x200 */
868 #define		TEXT_WIDTH	80
869 #define		TEXT_HEIGHT		25
870 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x25_D_N_16_d
871 #define		VRAM2SCREEN_ALL			v2s_all_U80x25_D_N_16_d
872 #include					"screen-vram-double.h"
873 #define		TEXT_WIDTH	80
874 #define		TEXT_HEIGHT		20
875 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x20_D_N_16_d
876 #define		VRAM2SCREEN_ALL			v2s_all_U80x20_D_N_16_d
877 #include					"screen-vram-double.h"
878 #define		TEXT_WIDTH	40
879 #define		TEXT_HEIGHT		25
880 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x25_D_N_16_d
881 #define		VRAM2SCREEN_ALL			v2s_all_U40x25_D_N_16_d
882 #include					"screen-vram-double.h"
883 #define		TEXT_WIDTH	40
884 #define		TEXT_HEIGHT		20
885 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x20_D_N_16_d
886 #define		VRAM2SCREEN_ALL			v2s_all_U40x20_D_N_16_d
887 #include					"screen-vram-double.h"
888 #undef	UNDISP
889 
890 #undef	NORMAL
891 /*----------------------------------------------------------------------
892  *			�� 200�饤��			�饤�����å�
893  *----------------------------------------------------------------------*/
894 #define SKIPLINE
895 
896 #define COLOR						/* ���顼640x200 */
897 #define		TEXT_WIDTH	80
898 #define		TEXT_HEIGHT		25
899 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x25_D_S_16_d
900 #define		VRAM2SCREEN_ALL			v2s_all_C80x25_D_S_16_d
901 #include					"screen-vram-double.h"
902 #define		TEXT_WIDTH	80
903 #define		TEXT_HEIGHT		20
904 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x20_D_S_16_d
905 #define		VRAM2SCREEN_ALL			v2s_all_C80x20_D_S_16_d
906 #include					"screen-vram-double.h"
907 #define		TEXT_WIDTH	40
908 #define		TEXT_HEIGHT		25
909 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x25_D_S_16_d
910 #define		VRAM2SCREEN_ALL			v2s_all_C40x25_D_S_16_d
911 #include					"screen-vram-double.h"
912 #define		TEXT_WIDTH	40
913 #define		TEXT_HEIGHT		20
914 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x20_D_S_16_d
915 #define		VRAM2SCREEN_ALL			v2s_all_C40x20_D_S_16_d
916 #include					"screen-vram-double.h"
917 #undef	COLOR
918 
919 #define MONO						/* ���	 640x200 */
920 #define		TEXT_WIDTH	80
921 #define		TEXT_HEIGHT		25
922 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x25_D_S_16_d
923 #define		VRAM2SCREEN_ALL			v2s_all_M80x25_D_S_16_d
924 #include					"screen-vram-double.h"
925 #define		TEXT_WIDTH	80
926 #define		TEXT_HEIGHT		20
927 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x20_D_S_16_d
928 #define		VRAM2SCREEN_ALL			v2s_all_M80x20_D_S_16_d
929 #include					"screen-vram-double.h"
930 #define		TEXT_WIDTH	40
931 #define		TEXT_HEIGHT		25
932 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x25_D_S_16_d
933 #define		VRAM2SCREEN_ALL			v2s_all_M40x25_D_S_16_d
934 #include					"screen-vram-double.h"
935 #define		TEXT_WIDTH	40
936 #define		TEXT_HEIGHT		20
937 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x20_D_S_16_d
938 #define		VRAM2SCREEN_ALL			v2s_all_M40x20_D_S_16_d
939 #include					"screen-vram-double.h"
940 #undef	MONO
941 
942 #define UNDISP						/* ��ɽ��640x200 */
943 #define		TEXT_WIDTH	80
944 #define		TEXT_HEIGHT		25
945 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x25_D_S_16_d
946 #define		VRAM2SCREEN_ALL			v2s_all_U80x25_D_S_16_d
947 #include					"screen-vram-double.h"
948 #define		TEXT_WIDTH	80
949 #define		TEXT_HEIGHT		20
950 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x20_D_S_16_d
951 #define		VRAM2SCREEN_ALL			v2s_all_U80x20_D_S_16_d
952 #include					"screen-vram-double.h"
953 #define		TEXT_WIDTH	40
954 #define		TEXT_HEIGHT		25
955 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x25_D_S_16_d
956 #define		VRAM2SCREEN_ALL			v2s_all_U40x25_D_S_16_d
957 #include					"screen-vram-double.h"
958 #define		TEXT_WIDTH	40
959 #define		TEXT_HEIGHT		20
960 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x20_D_S_16_d
961 #define		VRAM2SCREEN_ALL			v2s_all_U40x20_D_S_16_d
962 #include					"screen-vram-double.h"
963 #undef	UNDISP
964 
965 #undef	SKIPLINE
966 /*----------------------------------------------------------------------
967  *			�� 200�饤��			�������졼��
968  *----------------------------------------------------------------------*/
969 #define INTERLACE
970 
971 #define COLOR						/* ���顼640x200 */
972 #define		TEXT_WIDTH	80
973 #define		TEXT_HEIGHT		25
974 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x25_D_I_16_d
975 #define		VRAM2SCREEN_ALL			v2s_all_C80x25_D_I_16_d
976 #include					"screen-vram-double.h"
977 #define		TEXT_WIDTH	80
978 #define		TEXT_HEIGHT		20
979 #define		VRAM2SCREEN_DIFF		v2s_dif_C80x20_D_I_16_d
980 #define		VRAM2SCREEN_ALL			v2s_all_C80x20_D_I_16_d
981 #include					"screen-vram-double.h"
982 #define		TEXT_WIDTH	40
983 #define		TEXT_HEIGHT		25
984 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x25_D_I_16_d
985 #define		VRAM2SCREEN_ALL			v2s_all_C40x25_D_I_16_d
986 #include					"screen-vram-double.h"
987 #define		TEXT_WIDTH	40
988 #define		TEXT_HEIGHT		20
989 #define		VRAM2SCREEN_DIFF		v2s_dif_C40x20_D_I_16_d
990 #define		VRAM2SCREEN_ALL			v2s_all_C40x20_D_I_16_d
991 #include					"screen-vram-double.h"
992 #undef	COLOR
993 
994 #define MONO						/* ���	 640x200 */
995 #define		TEXT_WIDTH	80
996 #define		TEXT_HEIGHT		25
997 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x25_D_I_16_d
998 #define		VRAM2SCREEN_ALL			v2s_all_M80x25_D_I_16_d
999 #include					"screen-vram-double.h"
1000 #define		TEXT_WIDTH	80
1001 #define		TEXT_HEIGHT		20
1002 #define		VRAM2SCREEN_DIFF		v2s_dif_M80x20_D_I_16_d
1003 #define		VRAM2SCREEN_ALL			v2s_all_M80x20_D_I_16_d
1004 #include					"screen-vram-double.h"
1005 #define		TEXT_WIDTH	40
1006 #define		TEXT_HEIGHT		25
1007 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x25_D_I_16_d
1008 #define		VRAM2SCREEN_ALL			v2s_all_M40x25_D_I_16_d
1009 #include					"screen-vram-double.h"
1010 #define		TEXT_WIDTH	40
1011 #define		TEXT_HEIGHT		20
1012 #define		VRAM2SCREEN_DIFF		v2s_dif_M40x20_D_I_16_d
1013 #define		VRAM2SCREEN_ALL			v2s_all_M40x20_D_I_16_d
1014 #include					"screen-vram-double.h"
1015 #undef	MONO
1016 
1017 #define UNDISP						/* ��ɽ��640x200 */
1018 #define		TEXT_WIDTH	80
1019 #define		TEXT_HEIGHT		25
1020 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x25_D_I_16_d
1021 #define		VRAM2SCREEN_ALL			v2s_all_U80x25_D_I_16_d
1022 #include					"screen-vram-double.h"
1023 #define		TEXT_WIDTH	80
1024 #define		TEXT_HEIGHT		20
1025 #define		VRAM2SCREEN_DIFF		v2s_dif_U80x20_D_I_16_d
1026 #define		VRAM2SCREEN_ALL			v2s_all_U80x20_D_I_16_d
1027 #include					"screen-vram-double.h"
1028 #define		TEXT_WIDTH	40
1029 #define		TEXT_HEIGHT		25
1030 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x25_D_I_16_d
1031 #define		VRAM2SCREEN_ALL			v2s_all_U40x25_D_I_16_d
1032 #include					"screen-vram-double.h"
1033 #define		TEXT_WIDTH	40
1034 #define		TEXT_HEIGHT		20
1035 #define		VRAM2SCREEN_DIFF		v2s_dif_U40x20_D_I_16_d
1036 #define		VRAM2SCREEN_ALL			v2s_all_U40x20_D_I_16_d
1037 #include					"screen-vram-double.h"
1038 #undef	UNDISP
1039 
1040 #undef	INTERLACE
1041 /*----------------------------------------------------------------------
1042  *			�� 400�饤��			ɸ��
1043  *----------------------------------------------------------------------*/
1044 #define HIRESO						/* ���	 640x400 */
1045 
1046 #define		TEXT_WIDTH	80
1047 #define		TEXT_HEIGHT		25
1048 #define		VRAM2SCREEN_DIFF		v2s_dif_H80x25_D_N_16_d
1049 #define		VRAM2SCREEN_ALL			v2s_all_H80x25_D_N_16_d
1050 #include					"screen-vram-double.h"
1051 #define		TEXT_WIDTH	80
1052 #define		TEXT_HEIGHT		20
1053 #define		VRAM2SCREEN_DIFF		v2s_dif_H80x20_D_N_16_d
1054 #define		VRAM2SCREEN_ALL			v2s_all_H80x20_D_N_16_d
1055 #include					"screen-vram-double.h"
1056 #define		TEXT_WIDTH	40
1057 #define		TEXT_HEIGHT		25
1058 #define		VRAM2SCREEN_DIFF		v2s_dif_H40x25_D_N_16_d
1059 #define		VRAM2SCREEN_ALL			v2s_all_H40x25_D_N_16_d
1060 #include					"screen-vram-double.h"
1061 #define		TEXT_WIDTH	40
1062 #define		TEXT_HEIGHT		20
1063 #define		VRAM2SCREEN_DIFF		v2s_dif_H40x20_D_N_16_d
1064 #define		VRAM2SCREEN_ALL			v2s_all_H40x20_D_N_16_d
1065 #include					"screen-vram-double.h"
1066 #undef	HIRESO
1067 
1068 #endif	/* SUPPORT_DOUBLE */
1069 #undef	DIRECT
1070 
1071 
1072 /*===========================================================================
1073  * ���̾õ�
1074  *===========================================================================*/
1075 
1076 #define		SCREEN_BUF_INIT			screen_buf_init_16
1077 #include					"screen-vram-clear.h"
1078 
1079 
1080 /*===========================================================================
1081  * ��˥塼����
1082  *===========================================================================*/
1083 
1084 #define		MENU2SCREEN			menu2screen_F_N_16
1085 #include					"screen-menu-full.h"
1086 
1087 #define		MENU2SCREEN			menu2screen_H_N_16
1088 #include					"screen-menu-half.h"
1089 
1090 #define		MENU2SCREEN			menu2screen_H_P_16
1091 #include					"screen-menu-half-p.h"
1092 
1093 #ifdef	SUPPORT_DOUBLE
1094 #define		MENU2SCREEN			menu2screen_D_N_16
1095 #include					"screen-menu-double.h"
1096 #endif
1097 
1098 
1099 /*===========================================================================
1100  * ���ơ�����
1101  *===========================================================================*/
1102 
1103 #define		STATUS2SCREEN			status2screen_16
1104 #define		STATUS_BUF_INIT			status_buf_init_16
1105 #define		STATUS_BUF_CLEAR		status_buf_clear_16
1106 #include					"screen-status.h"
1107 
1108 
1109 #undef	TYPE		/* bit16 */
1110 
1111 
1112 
1113 
1114 
1115 
1116 
1117 
1118 
1119 
1120 
1121 
1122 /* ========================================================================= */
1123 /* ���ܥ����� - ɸ�� */
1124 
1125 int (*vram2screen_list_F_N_16[4][4][2])(void) =
1126 {
1127     {
1128 	{ v2s_dif_C80x25_F_N_16, v2s_all_C80x25_F_N_16 },
1129 	{ v2s_dif_C80x20_F_N_16, v2s_all_C80x20_F_N_16 },
1130 	{ v2s_dif_C40x25_F_N_16, v2s_all_C40x25_F_N_16 },
1131 	{ v2s_dif_C40x20_F_N_16, v2s_all_C40x20_F_N_16 },
1132     },
1133     {
1134 	{ v2s_dif_M80x25_F_N_16, v2s_all_M80x25_F_N_16 },
1135 	{ v2s_dif_M80x20_F_N_16, v2s_all_M80x20_F_N_16 },
1136 	{ v2s_dif_M40x25_F_N_16, v2s_all_M40x25_F_N_16 },
1137 	{ v2s_dif_M40x20_F_N_16, v2s_all_M40x20_F_N_16 },
1138     },
1139     {
1140 	{ v2s_dif_U80x25_F_N_16, v2s_all_U80x25_F_N_16 },
1141 	{ v2s_dif_U80x20_F_N_16, v2s_all_U80x20_F_N_16 },
1142 	{ v2s_dif_U40x25_F_N_16, v2s_all_U40x25_F_N_16 },
1143 	{ v2s_dif_U40x20_F_N_16, v2s_all_U40x20_F_N_16 },
1144     },
1145     {
1146 	{ v2s_dif_H80x25_F_N_16, v2s_all_H80x25_F_N_16 },
1147 	{ v2s_dif_H80x20_F_N_16, v2s_all_H80x20_F_N_16 },
1148 	{ v2s_dif_H40x25_F_N_16, v2s_all_H40x25_F_N_16 },
1149 	{ v2s_dif_H40x20_F_N_16, v2s_all_H40x20_F_N_16 },
1150     },
1151 };
1152 
1153 /* ���ܥ����� - �����åץ饤�� */
1154 
1155 int (*vram2screen_list_F_S_16[4][4][2])(void) =
1156 {
1157     {
1158 	{ v2s_dif_C80x25_F_S_16, v2s_all_C80x25_F_S_16 },
1159 	{ v2s_dif_C80x20_F_S_16, v2s_all_C80x20_F_S_16 },
1160 	{ v2s_dif_C40x25_F_S_16, v2s_all_C40x25_F_S_16 },
1161 	{ v2s_dif_C40x20_F_S_16, v2s_all_C40x20_F_S_16 },
1162     },
1163     {
1164 	{ v2s_dif_M80x25_F_S_16, v2s_all_M80x25_F_S_16 },
1165 	{ v2s_dif_M80x20_F_S_16, v2s_all_M80x20_F_S_16 },
1166 	{ v2s_dif_M40x25_F_S_16, v2s_all_M40x25_F_S_16 },
1167 	{ v2s_dif_M40x20_F_S_16, v2s_all_M40x20_F_S_16 },
1168     },
1169     {
1170 	{ v2s_dif_U80x25_F_S_16, v2s_all_U80x25_F_S_16 },
1171 	{ v2s_dif_U80x20_F_S_16, v2s_all_U80x20_F_S_16 },
1172 	{ v2s_dif_U40x25_F_S_16, v2s_all_U40x25_F_S_16 },
1173 	{ v2s_dif_U40x20_F_S_16, v2s_all_U40x20_F_S_16 },
1174     },
1175     {
1176 	{ v2s_dif_H80x25_F_N_16, v2s_all_H80x25_F_N_16 },
1177 	{ v2s_dif_H80x20_F_N_16, v2s_all_H80x20_F_N_16 },
1178 	{ v2s_dif_H40x25_F_N_16, v2s_all_H40x25_F_N_16 },
1179 	{ v2s_dif_H40x20_F_N_16, v2s_all_H40x20_F_N_16 },
1180     },
1181 };
1182 
1183 /* ���ܥ����� - �������졼�� */
1184 
1185 int (*vram2screen_list_F_I_16[4][4][2])(void) =
1186 {
1187     {
1188 	{ v2s_dif_C80x25_F_I_16, v2s_all_C80x25_F_I_16 },
1189 	{ v2s_dif_C80x20_F_I_16, v2s_all_C80x20_F_I_16 },
1190 	{ v2s_dif_C40x25_F_I_16, v2s_all_C40x25_F_I_16 },
1191 	{ v2s_dif_C40x20_F_I_16, v2s_all_C40x20_F_I_16 },
1192     },
1193     {
1194 	{ v2s_dif_M80x25_F_I_16, v2s_all_M80x25_F_I_16 },
1195 	{ v2s_dif_M80x20_F_I_16, v2s_all_M80x20_F_I_16 },
1196 	{ v2s_dif_M40x25_F_I_16, v2s_all_M40x25_F_I_16 },
1197 	{ v2s_dif_M40x20_F_I_16, v2s_all_M40x20_F_I_16 },
1198     },
1199     {
1200 	{ v2s_dif_U80x25_F_I_16, v2s_all_U80x25_F_I_16 },
1201 	{ v2s_dif_U80x20_F_I_16, v2s_all_U80x20_F_I_16 },
1202 	{ v2s_dif_U40x25_F_I_16, v2s_all_U40x25_F_I_16 },
1203 	{ v2s_dif_U40x20_F_I_16, v2s_all_U40x20_F_I_16 },
1204     },
1205     {
1206 	{ v2s_dif_H80x25_F_N_16, v2s_all_H80x25_F_N_16 },
1207 	{ v2s_dif_H80x20_F_N_16, v2s_all_H80x20_F_N_16 },
1208 	{ v2s_dif_H40x25_F_N_16, v2s_all_H40x25_F_N_16 },
1209 	{ v2s_dif_H40x20_F_N_16, v2s_all_H40x20_F_N_16 },
1210     },
1211 };
1212 
1213 /* ========================================================================= */
1214 /* Ⱦʬ������ - ɸ�� */
1215 
1216 int (*vram2screen_list_H_N_16[4][4][2])(void) =
1217 {
1218     {
1219 	{ v2s_dif_C80x25_H_N_16, v2s_all_C80x25_H_N_16 },
1220 	{ v2s_dif_C80x20_H_N_16, v2s_all_C80x20_H_N_16 },
1221 	{ v2s_dif_C40x25_H_N_16, v2s_all_C40x25_H_N_16 },
1222 	{ v2s_dif_C40x20_H_N_16, v2s_all_C40x20_H_N_16 },
1223     },
1224     {
1225 	{ v2s_dif_M80x25_H_N_16, v2s_all_M80x25_H_N_16 },
1226 	{ v2s_dif_M80x20_H_N_16, v2s_all_M80x20_H_N_16 },
1227 	{ v2s_dif_M40x25_H_N_16, v2s_all_M40x25_H_N_16 },
1228 	{ v2s_dif_M40x20_H_N_16, v2s_all_M40x20_H_N_16 },
1229     },
1230     {
1231 	{ v2s_dif_U80x25_H_N_16, v2s_all_U80x25_H_N_16 },
1232 	{ v2s_dif_U80x20_H_N_16, v2s_all_U80x20_H_N_16 },
1233 	{ v2s_dif_U40x25_H_N_16, v2s_all_U40x25_H_N_16 },
1234 	{ v2s_dif_U40x20_H_N_16, v2s_all_U40x20_H_N_16 },
1235     },
1236     {
1237 	{ v2s_dif_H80x25_H_N_16, v2s_all_H80x25_H_N_16 },
1238 	{ v2s_dif_H80x20_H_N_16, v2s_all_H80x20_H_N_16 },
1239 	{ v2s_dif_H40x25_H_N_16, v2s_all_H40x25_H_N_16 },
1240 	{ v2s_dif_H40x20_H_N_16, v2s_all_H40x20_H_N_16 },
1241     },
1242 };
1243 
1244 /* Ⱦʬ������ - ���䴰 */
1245 
1246 int (*vram2screen_list_H_P_16[4][4][2])(void) =
1247 {
1248     {
1249 	{ v2s_dif_C80x25_H_P_16, v2s_all_C80x25_H_P_16 },
1250 	{ v2s_dif_C80x20_H_P_16, v2s_all_C80x20_H_P_16 },
1251 	{ v2s_dif_C40x25_H_P_16, v2s_all_C40x25_H_P_16 },
1252 	{ v2s_dif_C40x20_H_P_16, v2s_all_C40x20_H_P_16 },
1253     },
1254     {
1255 	{ v2s_dif_M80x25_H_P_16, v2s_all_M80x25_H_P_16 },
1256 	{ v2s_dif_M80x20_H_P_16, v2s_all_M80x20_H_P_16 },
1257 	{ v2s_dif_M40x25_H_P_16, v2s_all_M40x25_H_P_16 },
1258 	{ v2s_dif_M40x20_H_P_16, v2s_all_M40x20_H_P_16 },
1259     },
1260     {
1261 	{ v2s_dif_U80x25_H_P_16, v2s_all_U80x25_H_P_16 },
1262 	{ v2s_dif_U80x20_H_P_16, v2s_all_U80x20_H_P_16 },
1263 	{ v2s_dif_U40x25_H_P_16, v2s_all_U40x25_H_P_16 },
1264 	{ v2s_dif_U40x20_H_P_16, v2s_all_U40x20_H_P_16 },
1265     },
1266     {
1267 	{ v2s_dif_H80x25_H_N_16, v2s_all_H80x25_H_N_16 },
1268 	{ v2s_dif_H80x20_H_N_16, v2s_all_H80x20_H_N_16 },
1269 	{ v2s_dif_H40x25_H_N_16, v2s_all_H40x25_H_N_16 },
1270 	{ v2s_dif_H40x20_H_N_16, v2s_all_H40x20_H_N_16 },
1271     },
1272 };
1273 
1274 /* ========================================================================= */
1275 #ifdef	SUPPORT_DOUBLE
1276 /* ���ܥ����� - ɸ�� */
1277 
1278 int (*vram2screen_list_D_N_16[4][4][2])(void) =
1279 {
1280     {
1281 	{ v2s_dif_C80x25_D_N_16, v2s_all_C80x25_D_N_16 },
1282 	{ v2s_dif_C80x20_D_N_16, v2s_all_C80x20_D_N_16 },
1283 	{ v2s_dif_C40x25_D_N_16, v2s_all_C40x25_D_N_16 },
1284 	{ v2s_dif_C40x20_D_N_16, v2s_all_C40x20_D_N_16 },
1285     },
1286     {
1287 	{ v2s_dif_M80x25_D_N_16, v2s_all_M80x25_D_N_16 },
1288 	{ v2s_dif_M80x20_D_N_16, v2s_all_M80x20_D_N_16 },
1289 	{ v2s_dif_M40x25_D_N_16, v2s_all_M40x25_D_N_16 },
1290 	{ v2s_dif_M40x20_D_N_16, v2s_all_M40x20_D_N_16 },
1291     },
1292     {
1293 	{ v2s_dif_U80x25_D_N_16, v2s_all_U80x25_D_N_16 },
1294 	{ v2s_dif_U80x20_D_N_16, v2s_all_U80x20_D_N_16 },
1295 	{ v2s_dif_U40x25_D_N_16, v2s_all_U40x25_D_N_16 },
1296 	{ v2s_dif_U40x20_D_N_16, v2s_all_U40x20_D_N_16 },
1297     },
1298     {
1299 	{ v2s_dif_H80x25_D_N_16, v2s_all_H80x25_D_N_16 },
1300 	{ v2s_dif_H80x20_D_N_16, v2s_all_H80x20_D_N_16 },
1301 	{ v2s_dif_H40x25_D_N_16, v2s_all_H40x25_D_N_16 },
1302 	{ v2s_dif_H40x20_D_N_16, v2s_all_H40x20_D_N_16 },
1303     },
1304 };
1305 
1306 /* ���ܥ����� - �����åץ饤�� */
1307 
1308 int (*vram2screen_list_D_S_16[4][4][2])(void) =
1309 {
1310     {
1311 	{ v2s_dif_C80x25_D_S_16, v2s_all_C80x25_D_S_16 },
1312 	{ v2s_dif_C80x20_D_S_16, v2s_all_C80x20_D_S_16 },
1313 	{ v2s_dif_C40x25_D_S_16, v2s_all_C40x25_D_S_16 },
1314 	{ v2s_dif_C40x20_D_S_16, v2s_all_C40x20_D_S_16 },
1315     },
1316     {
1317 	{ v2s_dif_M80x25_D_S_16, v2s_all_M80x25_D_S_16 },
1318 	{ v2s_dif_M80x20_D_S_16, v2s_all_M80x20_D_S_16 },
1319 	{ v2s_dif_M40x25_D_S_16, v2s_all_M40x25_D_S_16 },
1320 	{ v2s_dif_M40x20_D_S_16, v2s_all_M40x20_D_S_16 },
1321     },
1322     {
1323 	{ v2s_dif_U80x25_D_S_16, v2s_all_U80x25_D_S_16 },
1324 	{ v2s_dif_U80x20_D_S_16, v2s_all_U80x20_D_S_16 },
1325 	{ v2s_dif_U40x25_D_S_16, v2s_all_U40x25_D_S_16 },
1326 	{ v2s_dif_U40x20_D_S_16, v2s_all_U40x20_D_S_16 },
1327     },
1328     {
1329 	{ v2s_dif_H80x25_D_N_16, v2s_all_H80x25_D_N_16 },
1330 	{ v2s_dif_H80x20_D_N_16, v2s_all_H80x20_D_N_16 },
1331 	{ v2s_dif_H40x25_D_N_16, v2s_all_H40x25_D_N_16 },
1332 	{ v2s_dif_H40x20_D_N_16, v2s_all_H40x20_D_N_16 },
1333     },
1334 };
1335 
1336 /* ���ܥ����� - �������졼�� */
1337 
1338 int (*vram2screen_list_D_I_16[4][4][2])(void) =
1339 {
1340     {
1341 	{ v2s_dif_C80x25_D_I_16, v2s_all_C80x25_D_I_16 },
1342 	{ v2s_dif_C80x20_D_I_16, v2s_all_C80x20_D_I_16 },
1343 	{ v2s_dif_C40x25_D_I_16, v2s_all_C40x25_D_I_16 },
1344 	{ v2s_dif_C40x20_D_I_16, v2s_all_C40x20_D_I_16 },
1345     },
1346     {
1347 	{ v2s_dif_M80x25_D_I_16, v2s_all_M80x25_D_I_16 },
1348 	{ v2s_dif_M80x20_D_I_16, v2s_all_M80x20_D_I_16 },
1349 	{ v2s_dif_M40x25_D_I_16, v2s_all_M40x25_D_I_16 },
1350 	{ v2s_dif_M40x20_D_I_16, v2s_all_M40x20_D_I_16 },
1351     },
1352     {
1353 	{ v2s_dif_U80x25_D_I_16, v2s_all_U80x25_D_I_16 },
1354 	{ v2s_dif_U80x20_D_I_16, v2s_all_U80x20_D_I_16 },
1355 	{ v2s_dif_U40x25_D_I_16, v2s_all_U40x25_D_I_16 },
1356 	{ v2s_dif_U40x20_D_I_16, v2s_all_U40x20_D_I_16 },
1357     },
1358     {
1359 	{ v2s_dif_H80x25_D_N_16, v2s_all_H80x25_D_N_16 },
1360 	{ v2s_dif_H80x20_D_N_16, v2s_all_H80x20_D_N_16 },
1361 	{ v2s_dif_H40x25_D_N_16, v2s_all_H40x25_D_N_16 },
1362 	{ v2s_dif_H40x20_D_N_16, v2s_all_H40x20_D_N_16 },
1363     },
1364 };
1365 #endif	/* SUPPORT_DOUBLE */
1366 
1367 /* ------------------------------------------------------------------------- */
1368 /* ���ܥ����� - ɸ�� */
1369 
1370 int (*vram2screen_list_F_N_16_d[4][4][2])(void) =
1371 {
1372     {
1373 	{ v2s_dif_C80x25_F_N_16_d, v2s_all_C80x25_F_N_16_d },
1374 	{ v2s_dif_C80x20_F_N_16_d, v2s_all_C80x20_F_N_16_d },
1375 	{ v2s_dif_C40x25_F_N_16_d, v2s_all_C40x25_F_N_16_d },
1376 	{ v2s_dif_C40x20_F_N_16_d, v2s_all_C40x20_F_N_16_d },
1377     },
1378     {
1379 	{ v2s_dif_M80x25_F_N_16_d, v2s_all_M80x25_F_N_16_d },
1380 	{ v2s_dif_M80x20_F_N_16_d, v2s_all_M80x20_F_N_16_d },
1381 	{ v2s_dif_M40x25_F_N_16_d, v2s_all_M40x25_F_N_16_d },
1382 	{ v2s_dif_M40x20_F_N_16_d, v2s_all_M40x20_F_N_16_d },
1383     },
1384     {
1385 	{ v2s_dif_U80x25_F_N_16_d, v2s_all_U80x25_F_N_16_d },
1386 	{ v2s_dif_U80x20_F_N_16_d, v2s_all_U80x20_F_N_16_d },
1387 	{ v2s_dif_U40x25_F_N_16_d, v2s_all_U40x25_F_N_16_d },
1388 	{ v2s_dif_U40x20_F_N_16_d, v2s_all_U40x20_F_N_16_d },
1389     },
1390     {
1391 	{ v2s_dif_H80x25_F_N_16, v2s_all_H80x25_F_N_16 },
1392 	{ v2s_dif_H80x20_F_N_16, v2s_all_H80x20_F_N_16 },
1393 	{ v2s_dif_H40x25_F_N_16, v2s_all_H40x25_F_N_16 },
1394 	{ v2s_dif_H40x20_F_N_16, v2s_all_H40x20_F_N_16 },
1395     },
1396 };
1397 
1398 #ifdef	SUPPORT_DOUBLE
1399 /* ���ܥ����� - ɸ�� */
1400 
1401 int (*vram2screen_list_D_N_16_d[4][4][2])(void) =
1402 {
1403     {
1404 	{ v2s_dif_C80x25_D_N_16_d, v2s_all_C80x25_D_N_16_d },
1405 	{ v2s_dif_C80x20_D_N_16_d, v2s_all_C80x20_D_N_16_d },
1406 	{ v2s_dif_C40x25_D_N_16_d, v2s_all_C40x25_D_N_16_d },
1407 	{ v2s_dif_C40x20_D_N_16_d, v2s_all_C40x20_D_N_16_d },
1408     },
1409     {
1410 	{ v2s_dif_M80x25_D_N_16_d, v2s_all_M80x25_D_N_16_d },
1411 	{ v2s_dif_M80x20_D_N_16_d, v2s_all_M80x20_D_N_16_d },
1412 	{ v2s_dif_M40x25_D_N_16_d, v2s_all_M40x25_D_N_16_d },
1413 	{ v2s_dif_M40x20_D_N_16_d, v2s_all_M40x20_D_N_16_d },
1414     },
1415     {
1416 	{ v2s_dif_U80x25_D_N_16_d, v2s_all_U80x25_D_N_16_d },
1417 	{ v2s_dif_U80x20_D_N_16_d, v2s_all_U80x20_D_N_16_d },
1418 	{ v2s_dif_U40x25_D_N_16_d, v2s_all_U40x25_D_N_16_d },
1419 	{ v2s_dif_U40x20_D_N_16_d, v2s_all_U40x20_D_N_16_d },
1420     },
1421     {
1422 	{ v2s_dif_H80x25_D_N_16_d, v2s_all_H80x25_D_N_16_d },
1423 	{ v2s_dif_H80x20_D_N_16_d, v2s_all_H80x20_D_N_16_d },
1424 	{ v2s_dif_H40x25_D_N_16_d, v2s_all_H40x25_D_N_16_d },
1425 	{ v2s_dif_H40x20_D_N_16_d, v2s_all_H40x20_D_N_16_d },
1426     },
1427 };
1428 
1429 /* ���ܥ����� - �����åץ饤�� */
1430 
1431 int (*vram2screen_list_D_S_16_d[4][4][2])(void) =
1432 {
1433     {
1434 	{ v2s_dif_C80x25_D_S_16_d, v2s_all_C80x25_D_S_16_d },
1435 	{ v2s_dif_C80x20_D_S_16_d, v2s_all_C80x20_D_S_16_d },
1436 	{ v2s_dif_C40x25_D_S_16_d, v2s_all_C40x25_D_S_16_d },
1437 	{ v2s_dif_C40x20_D_S_16_d, v2s_all_C40x20_D_S_16_d },
1438     },
1439     {
1440 	{ v2s_dif_M80x25_D_S_16_d, v2s_all_M80x25_D_S_16_d },
1441 	{ v2s_dif_M80x20_D_S_16_d, v2s_all_M80x20_D_S_16_d },
1442 	{ v2s_dif_M40x25_D_S_16_d, v2s_all_M40x25_D_S_16_d },
1443 	{ v2s_dif_M40x20_D_S_16_d, v2s_all_M40x20_D_S_16_d },
1444     },
1445     {
1446 	{ v2s_dif_U80x25_D_S_16_d, v2s_all_U80x25_D_S_16_d },
1447 	{ v2s_dif_U80x20_D_S_16_d, v2s_all_U80x20_D_S_16_d },
1448 	{ v2s_dif_U40x25_D_S_16_d, v2s_all_U40x25_D_S_16_d },
1449 	{ v2s_dif_U40x20_D_S_16_d, v2s_all_U40x20_D_S_16_d },
1450     },
1451     {
1452 	{ v2s_dif_H80x25_D_N_16_d, v2s_all_H80x25_D_N_16_d },
1453 	{ v2s_dif_H80x20_D_N_16_d, v2s_all_H80x20_D_N_16_d },
1454 	{ v2s_dif_H40x25_D_N_16_d, v2s_all_H40x25_D_N_16_d },
1455 	{ v2s_dif_H40x20_D_N_16_d, v2s_all_H40x20_D_N_16_d },
1456     },
1457 };
1458 
1459 /* ���ܥ����� - �������졼�� */
1460 
1461 int (*vram2screen_list_D_I_16_d[4][4][2])(void) =
1462 {
1463     {
1464 	{ v2s_dif_C80x25_D_I_16_d, v2s_all_C80x25_D_I_16_d },
1465 	{ v2s_dif_C80x20_D_I_16_d, v2s_all_C80x20_D_I_16_d },
1466 	{ v2s_dif_C40x25_D_I_16_d, v2s_all_C40x25_D_I_16_d },
1467 	{ v2s_dif_C40x20_D_I_16_d, v2s_all_C40x20_D_I_16_d },
1468     },
1469     {
1470 	{ v2s_dif_M80x25_D_I_16_d, v2s_all_M80x25_D_I_16_d },
1471 	{ v2s_dif_M80x20_D_I_16_d, v2s_all_M80x20_D_I_16_d },
1472 	{ v2s_dif_M40x25_D_I_16_d, v2s_all_M40x25_D_I_16_d },
1473 	{ v2s_dif_M40x20_D_I_16_d, v2s_all_M40x20_D_I_16_d },
1474     },
1475     {
1476 	{ v2s_dif_U80x25_D_I_16_d, v2s_all_U80x25_D_I_16_d },
1477 	{ v2s_dif_U80x20_D_I_16_d, v2s_all_U80x20_D_I_16_d },
1478 	{ v2s_dif_U40x25_D_I_16_d, v2s_all_U40x25_D_I_16_d },
1479 	{ v2s_dif_U40x20_D_I_16_d, v2s_all_U40x20_D_I_16_d },
1480     },
1481     {
1482 	{ v2s_dif_H80x25_D_N_16_d, v2s_all_H80x25_D_N_16_d },
1483 	{ v2s_dif_H80x20_D_N_16_d, v2s_all_H80x20_D_N_16_d },
1484 	{ v2s_dif_H40x25_D_N_16_d, v2s_all_H40x25_D_N_16_d },
1485 	{ v2s_dif_H40x20_D_N_16_d, v2s_all_H40x20_D_N_16_d },
1486     },
1487 };
1488 #endif	/* SUPPORT_DOUBLE */
1489 
1490 #endif	/* SUPPORT_16BPP */
1491