]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/modex16/320x240.h
pmnextframe readded ca needs huge amounts of work and i should remember what needs...
[16.git] / src / lib / modex16 / 320x240.h
index 7af3fd95566efe26d27f20e989b9bf038fa648ba..5395907b78e57603af9591e939e4c82d9a4af529 100755 (executable)
@@ -1,5 +1,5 @@
 /* Project 16 Source Code~\r
- * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669\r
+ * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
  *\r
  * This file is part of Project 16.\r
  *\r
 \r
 #include "src/lib/types.h"\r
 \r
-static const word ModeX_320x240regs[75] =\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
+       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_320x240regs[] = {\r
+       0x5f00,         /* Horizontal total */\r
+       0x4f01,         /* horizontal display enable end */\r
+       0x5002,         /* Start horizontal blanking */\r
+       0x8203,         /* End horizontal blanking */\r
+       0x5404,         /* Start horizontal retrace */\r
+       0x8005,         /* End horizontal retrace */\r
+       0x0d06,          /* vertical total */\r
+       0x3e07,          /* overflow (bit 8 of vertical counts) */\r
+       0x4109,          /* 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
+       0x2813,         /* 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
 };\r
 \r
 #endif /*_UNX_H_*/\r