]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/modex16/160x120.h
refresh wwww
[16.git] / src / lib / modex16 / 160x120.h
diff --git a/src/lib/modex16/160x120.h b/src/lib/modex16/160x120.h
new file mode 100755 (executable)
index 0000000..735909e
--- /dev/null
@@ -0,0 +1,106 @@
+/* Project 16 Source Code~\r
+ * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123\r
+ *\r
+ * This file is part of Project 16.\r
+ *\r
+ * Project 16 is free software; you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation; either version 3 of the License, or\r
+ * (at your option) any later version.\r
+ *\r
+ * Project 16 is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>, or\r
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,\r
+ * Fifth Floor, Boston, MA 02110-1301 USA.\r
+ *\r
+ */\r
+\r
+#ifndef _SMALLMODEXREST_H_\r
+#define _SMALLMODEXREST_H_\r
+\r
+#include "src/lib/types.h"\r
+\r
+/*static const word ModeX_320x240regs[75] =\r
+{\r
+       0x3c2, 0x00, 0xe3,\r
+       0x3d4, 0x00, 0x5f,\r
+       0x3d4, 0x01, 0x4f,\r
+       0x3d4, 0x02, 0x50,\r
+       0x3d4, 0x03, 0x82,\r
+       0x3d4, 0x04, 0x54,\r
+       0x3d4, 0x05, 0x80,\r
+       0x3d4, 0x06, 0x0d,\r
+       0x3d4, 0x07, 0x3e,\r
+       0x3d4, 0x08, 0x00,\r
+       0x3d4, 0x09, 0x41,\r
+       0x3d4, 0x10, 0xea,\r
+       0x3d4, 0x11, 0xac,\r
+       0x3d4, 0x12, 0xdf,\r
+       0x3d4, 0x13, 0x28,\r
+       0x3d4, 0x14, 0x00,\r
+       0x3d4, 0x15, 0xe7,\r
+       0x3d4, 0x16, 0x06,\r
+       0x3d4, 0x17, 0xe3,\r
+       0x3c4, 0x01, 0x01,\r
+       0x3c4, 0x04, 0x06,\r
+       0x3ce, 0x05, 0x40,\r
+       0x3ce, 0x06, 0x05,\r
+       0x3c0, 0x10, 0x41,\r
+       0x3c0, 0x13, 0x00\r
+};*/\r
+\r
+static const word ModeX_160x120regs[] = {\r
+       0x3200,         /* Horizontal total */\r
+       0x2701,         /* horizontal display enable end */\r
+       0x2802,         /* Start horizontal blanking */\r
+       0x2003,         /* End horizontal blanking */\r
+       0x2b04,         /* Start horizontal retrace */\r
+       0x7005,         /* End horizontal retrace */\r
+       0x0d06,          /* vertical total */\r
+       0x3e07,          /* overflow (bit 8 of vertical counts) */\r
+       0x4309,          /* cell height (2 to double-scan */\r
+       0xea10,          /* v sync start */\r
+       0xac11,          /* v sync end and protect cr0-cr7 */\r
+       0xdf12,          /* vertical displayed */\r
+       0x1413,         /* offset/logical width */\r
+       0x0014,          /* turn off dword mode */\r
+       0xe715,          /* v blank start */\r
+       0x0616,          /* v blank end */\r
+       0xe317            /* turn on byte mode */\r
+};//50 => 30\r
+\r
+#endif /*_SMALLMODEXREST_H_*/\r
+/*#include "TwkUser.h" // get Register definition\r
+Register 192x144[] =\r
+       {\r
+       { 0x3d4, 0x0, 0x3f},\r
+       { 0x3d4, 0x1, 0x2f},\r
+       { 0x3d4, 0x2, 0x30},\r
+       { 0x3d4, 0x3, 0x0},\r
+       { 0x3d4, 0x4, 0x34},\r
+       { 0x3d4, 0x5, 0x48},\r
+       { 0x3d4, 0x6, 0xd},\r
+       { 0x3d4, 0x7, 0x3e},\r
+       { 0x3d4, 0x8, 0x0},\r
+       { 0x3d4, 0x9, 0x41},\r
+       { 0x3d4, 0x10, 0xea},\r
+       { 0x3d4, 0x11, 0xac},\r
+       { 0x3d4, 0x12, 0x1f},\r
+       { 0x3d4, 0x13, 0x18},\r
+       { 0x3d4, 0x14, 0x0},\r
+       { 0x3d4, 0x15, 0xe7},\r
+       { 0x3d4, 0x16, 0x6},\r
+       { 0x3d4, 0x17, 0xe3},\r
+       { 0x3c4, 0x1, 0x1},\r
+       { 0x3c4, 0x4, 0x6},\r
+       { 0x3ce, 0x5, 0x40},\r
+       { 0x3ce, 0x6, 0x5},\r
+       { 0x3c0, 0x10, 0x41},\r
+       { 0x3c0, 0x11, 0xe},\r
+       { 0x3c0, 0x13, 0x0}\r
+       };*/\r