]> 4ch.mooo.com Git - 16.git/blob - src/lib/modex16/320x200.h
updated copyright www
[16.git] / src / lib / modex16 / 320x200.h
1 /* Project 16 Source Code~\r
2  * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123\r
3  *\r
4  * This file is part of Project 16.\r
5  *\r
6  * Project 16 is free software; you can redistribute it and/or modify\r
7  * it under the terms of the GNU General Public License as published by\r
8  * the Free Software Foundation; either version 3 of the License, or\r
9  * (at your option) any later version.\r
10  *\r
11  * Project 16 is distributed in the hope that it will be useful,\r
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
14  * GNU General Public License for more details.\r
15  *\r
16  * You should have received a copy of the GNU General Public License\r
17  * along with this program.  If not, see <http://www.gnu.org/licenses/>, or\r
18  * write to the Free Software Foundation, Inc., 51 Franklin Street,\r
19  * Fifth Floor, Boston, MA 02110-1301 USA.\r
20  *\r
21  */\r
22 \r
23 #ifndef _UNOX_H_\r
24 #define _UNOX_H_\r
25 \r
26 #include "src/lib/types.h"\r
27 \r
28 /*static const word ModeX_320x200regs[75] =\r
29 {\r
30         0x3c2, 0x00, 0x63,\r
31         0x3d4, 0x00, 0x5f,\r
32         0x3d4, 0x01, 0x4f,\r
33         0x3d4, 0x02, 0x50,\r
34         0x3d4, 0x03, 0x82,\r
35         0x3d4, 0x04, 0x54,\r
36         0x3d4, 0x05, 0x80,\r
37         0x3d4, 0x06, 0xbf,\r
38         0x3d4, 0x07, 0x1f,\r
39         0x3d4, 0x08, 0x00,\r
40         0x3d4, 0x09, 0x41,\r
41         0x3d4, 0x10, 0x9c,\r
42         0x3d4, 0x11, 0x8e,\r
43         0x3d4, 0x12, 0x8f,\r
44         0x3d4, 0x13, 0x28,\r
45         0x3d4, 0x14, 0x00,\r
46         0x3d4, 0x15, 0x96,\r
47         0x3d4, 0x16, 0xb9,\r
48         0x3d4, 0x17, 0xe3,\r
49         0x3c4, 0x01, 0x01,\r
50         0x3c4, 0x04, 0x06,\r
51         0x3ce, 0x05, 0x40,\r
52         0x3ce, 0x06, 0x05,\r
53         0x3c0, 0x10, 0x41,\r
54         0x3c0, 0x13, 0x00\r
55 };*/\r
56 \r
57 static const word ModeX_320x200regs[] = {\r
58         0x5f00,         /* Horizontal total */\r
59         0x4f01,         /* horizontal display enable end */\r
60         0x5002,         /* Start horizontal blanking */\r
61         0x8203,         /* End horizontal blanking */\r
62         0x5404,         /* Start horizontal retrace */\r
63         0x8005,         /* End horizontal retrace */\r
64         0x0d06,          /* vertical total */\r
65         0x3e07,          /* overflow (bit 8 of vertical counts) */\r
66         0x4109,          /* cell height (2 to double-scan */\r
67         0xea10,          /* v sync start */\r
68         0xac11,          /* v sync end and protect cr0-cr7 */\r
69         0xdf12,          /* vertical displayed */\r
70         0x2813,         /* offset/logical width */\r
71         0x0014,          /* turn off dword mode */\r
72         0x9615,          /* v blank start */\r
73         0xb916,          /* v blank end */\r
74         0xe317            /* turn on byte mode */\r
75 };\r
76 \r
77 #endif /*_UNOX_H_*/\r