1 /* Project 16 Source Code~
\r
2 * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover
\r
4 * This file is part of Project 16.
\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
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
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
23 #ifndef _SMALLMODEXREST_H_
\r
24 #define _SMALLMODEXREST_H_
\r
26 #include "src/lib/types.h"
\r
28 /*static const word ModeX_320x240regs[75] =
\r
57 static const word ModeX_160x120regs[] = {
\r
58 0x3200, /* Horizontal total */
\r
59 0x2701, /* horizontal display enable end */
\r
60 0x2802, /* Start horizontal blanking */
\r
61 0x2003, /* End horizontal blanking */
\r
62 0x2b04, /* Start horizontal retrace */
\r
63 0x7005, /* End horizontal retrace */
\r
64 0x0d06, /* vertical total */
\r
65 0x3e07, /* overflow (bit 8 of vertical counts) */
\r
66 0x4309, /* 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 0x1413, /* offset/logical width */
\r
71 0x0014, /* turn off dword mode */
\r
72 0xe715, /* v blank start */
\r
73 0x0616, /* v blank end */
\r
74 0xe317 /* turn on byte mode */
\r
77 #endif /*_SMALLMODEXREST_H_*/
\r
78 /*#include "TwkUser.h" // get Register definition
\r
79 Register 192x144[] =
\r
81 { 0x3d4, 0x0, 0x3f},
\r
82 { 0x3d4, 0x1, 0x2f},
\r
83 { 0x3d4, 0x2, 0x30},
\r
85 { 0x3d4, 0x4, 0x34},
\r
86 { 0x3d4, 0x5, 0x48},
\r
88 { 0x3d4, 0x7, 0x3e},
\r
90 { 0x3d4, 0x9, 0x41},
\r
91 { 0x3d4, 0x10, 0xea},
\r
92 { 0x3d4, 0x11, 0xac},
\r
93 { 0x3d4, 0x12, 0x1f},
\r
94 { 0x3d4, 0x13, 0x18},
\r
95 { 0x3d4, 0x14, 0x0},
\r
96 { 0x3d4, 0x15, 0xe7},
\r
97 { 0x3d4, 0x16, 0x6},
\r
98 { 0x3d4, 0x17, 0xe3},
\r
100 { 0x3c4, 0x4, 0x6},
\r
101 { 0x3ce, 0x5, 0x40},
\r
102 { 0x3ce, 0x6, 0x5},
\r
103 { 0x3c0, 0x10, 0x41},
\r
104 { 0x3c0, 0x11, 0xe},
\r
105 { 0x3c0, 0x13, 0x0}
\r