- word CRTParms[] = {\r
-// 0xe300, /* horizontal total */\r
-// 0x4f01, /* horizontal display enable end */\r
- 0x5002, /* */\r
- 0x5404, /* */\r
- 0x8005, /* */\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
- int CRTParmCount = sizeof(CRTParms) / sizeof(CRTParms[0]);\r
- /* width and height */\r
- //TODO WWWW\r
-\r
- /* TODO save current video mode and palette */\r
- vgaSetMode(VGA_256_COLOR_MODE);\r
-\r
- /* disable chain4 mode */\r
- outpw(SC_INDEX, 0x0604);\r