]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/modex16/192x144.h
addedexperimental 2nd res header for testings!
[16.git] / src / lib / modex16 / 192x144.h
index 7c07a9c6a5d7f8abc0fe042383bfd3728f7cb963..a6f645e68bb16c575df56f54c1f5cf9697de7de5 100755 (executable)
 };*/\r
 \r
 static const word ModeX_192x144regs[] = {\r
-       0x4f01,         /* horizontal display enable end */\r
+       0x5f00,         /* Horizontal total */\r
+       0x2f01,         /* horizontal display enable end */\r
        0x5002,         /* Start horizontal blanking */\r
-       0x5404,         /* End 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
+       0x1f12,          /* vertical displayed */\r
+       0x1813,         /* 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
+};//50 => 30\r
 \r
 #endif /*_SMALLMODEXRES_H_*/\r
 /*\r
-void\r
-tg::mode160x120()\r
-{\r
-    int crtc11;\r
-\r
-    outp(0x3d4, 0x11); // unlock crtc\r
-    crtc11 = inp(0x3d5) & 0x7f;\r
-    outp(0x3d4, 0x11);\r
-    outp(0x3d5, crtc11);\r
-\r
-    width   = 160;\r
-    height  = 120;\r
-    maxx    = 159;\r
-    maxy    = 119;\r
-    pages   = 13;\r
-    lineSize = 40;\r
-    pageSize = 19200;\r
-    modeName = "160x120";\r
-\r
-    outp(0x3c2, 0xe3);   // mor\r
-\r
-    outp(0x3d4, 0x00); // crtc\r
-    outp(0x3d5, 0x32);\r
-\r
-    outp(0x3d4, 0x01); // crtc\r
-    outp(0x3d5, 0x27);\r
-\r
-    outp(0x3d4, 0x02); // crtc\r
-    outp(0x3d5, 0x28);\r
-\r
-    outp(0x3d4, 0x03); // crtc\r
-    outp(0x3d5, 0x20);\r
-\r
-    outp(0x3d4, 0x04); // crtc\r
-    outp(0x3d5, 0x2b);\r
-\r
-    outp(0x3d4, 0x05); // crtc\r
-    outp(0x3d5, 0x70);\r
-\r
-    outp(0x3d4, 0x06); // crtc\r
-    outp(0x3d5, 0x0d);\r
-\r
-    outp(0x3d4, 0x07); // crtc\r
-    outp(0x3d5, 0x3e);\r
-\r
-    outp(0x3d4, 0x08); // crtc\r
-    outp(0x3d5, 0x00);\r
-\r
-    outp(0x3d4, 0x09); // crtc\r
-    outp(0x3d5, 0x43);\r
-\r
-    outp(0x3d4, 0x10); // crtc\r
-    outp(0x3d5, 0xea);\r
-\r
-    outp(0x3d4, 0x11); // crtc\r
-    outp(0x3d5, 0xac);\r
-\r
-    outp(0x3d4, 0x12); // crtc\r
-    outp(0x3d5, 0xdf);\r
-\r
-    outp(0x3d4, 0x13); // crtc\r
-    outp(0x3d5, 0x14);\r
-\r
-    outp(0x3d4, 0x14); // crtc\r
-    outp(0x3d5, 0x00);\r
-\r
-    outp(0x3d4, 0x15); // crtc\r
-    outp(0x3d5, 0xe7);\r
-\r
-    outp(0x3d4, 0x16); // crtc\r
-    outp(0x3d5, 0x06);\r
-\r
-    outp(0x3d4, 0x17); // crtc\r
-    outp(0x3d5, 0xe3);\r
-\r
-    outp(0x3c4, 0x01); // seq\r
-    outp(0x3c5, 0x01);\r
-\r
-    outp(0x3c4, 0x03); // seq\r
-    outp(0x3c5, 0x00);\r
-\r
-    outp(0x3c4, 0x04); // seq\r
-    outp(0x3c5, 0x06);\r
-\r
-    outp(0x3ce, 0x05); // gcr\r
-    outp(0x3cf, 0x40);\r
-\r
-    outp(0x3ce, 0x06); // gcr\r
-    outp(0x3cf, 0x05);\r
-\r
-    inp(0x3da);          // acr\r
-    outp(0x3c0, 0x10 | 0x20);\r
-    outp(0x3c0, 0x41);\r
-\r
-    inp(0x3da);          // acr\r
-    outp(0x3c0, 0x11 | 0x20);\r
-    outp(0x3c0, 0x00);\r
-\r
-    inp(0x3da);          // acr\r
-    outp(0x3c0, 0x12 | 0x20);\r
-    outp(0x3c0, 0x0f);\r
-\r
-    inp(0x3da);          // acr\r
-    outp(0x3c0, 0x13 | 0x20);\r
-    outp(0x3c0, 0x00);\r
-\r
-    inp(0x3da);          // acr\r
-    outp(0x3c0, 0x14 | 0x20);\r
-    outp(0x3c0, 0x00);\r
-\r
-    outp(0x3d4, 0x11); // lock crtc\r
-    crtc11 = inp(0x3d5) | 0x80;\r
-    outp(0x3d4, 0x11);\r
-    outp(0x3d5, crtc11);\r
-}\r
+192x144[] =\r
+       {\r
+       { 0x3c2, 0x0, 0xe3},\r
+       { 0x3d4, 0x0, 0x3f},\r
+       { 0x3d4, 0x1, 0x2f},\r
+       { 0x3d4, 0x2, 0x50},\r
+       { 0x3d4, 0x3, 0x82},\r
+       { 0x3d4, 0x4, 0x54},\r
+       { 0x3d4, 0x5, 0x80},\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, 0x13, 0x0}\r
+       };\r
 */\r