home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 April (Special) / Chip-Special_1997-04_cd.bin / spea / mercury / os2s3207 / os2s3207.exe / MER642MV.PM_ / SVGADATA.PMI
Encoding:
Text File  |  1995-06-12  |  16.5 KB  |  830 lines

  1. /*
  2.  *    V7UTIL: SPEA/V7  PMI-File Generator for OS/2
  3.  */
  4.  
  5. /*
  6.  *    Lock Extended Registers
  7.  */
  8.  
  9. [Lock]
  10. outb(0x3d4, 0x38);
  11. outb(0x3d5, 0x00);
  12. outb(0x3d4, 0x39);
  13. outb(0x3d5, 0x00);
  14.  
  15. /*
  16.  *    Unlock Extended Registers
  17.  */
  18.  
  19. [UnLock]
  20. outb(0x3d4, 0x38);
  21. outb(0x3d5, 0x48);
  22. outb(0x3d4, 0x39);
  23. outb(0x3d5, 0xa0);
  24. outb(0x3b4, 0x38);
  25. outb(0x3b5, 0x48);
  26. outb(0x3b4, 0x39);
  27. outb(0x3b5, 0xa0);
  28.  
  29. [Cleanup]
  30.  
  31. rmww(0x4ae8, 0x4ae8, 0x00, 0x00);
  32. rmwb(0x3d4, 0x3d5, 0x31, 0xf7, 0x00);
  33. rmwb(0x3d4, 0x3d5, 0x34, 0x00, 0x00);
  34. rmwb(0x3d4, 0x3d5, 0x3a, 0xef, 0x00);
  35. rmwb(0x3d4, 0x3d5, 0x40, 0xfe, 0x00);
  36. rmwb(0x3d4, 0x3d5, 0x45, 0xfe, 0x00);
  37. rmwb(0x3d4, 0x3d5, 0x51, 0xf3, 0x00);
  38. rmwb(0x3d4, 0x3d5, 0x58, 0xec, 0x00);
  39. rmwb(0x3d4, 0x3d5, 0x60, 0x00, 0x07);
  40. rmwb(0x3d4, 0x3d5, 0x61, 0x00, 0x80);
  41. rmwb(0x3d4, 0x3d5, 0x62, 0x00, 0xa1);
  42.  
  43. /*
  44.  *    HI-COLOR DAC by Brooktree Corporation
  45.  */
  46.  
  47. [comment]
  48.     Graphics Mode: 640 x 480 x 256 colors.
  49.  
  50. [AdapterType]
  51.         S3
  52.  
  53. [ChipSet]
  54.         S3968
  55.  
  56. [ModeInfo]
  57.         ModeAttributes   = 0x18
  58.         BytesPerScanLine = 80
  59.         XResolution      = 640
  60.         YResolution      = 480
  61.         TextRows         = 30
  62.         BitsPerPixel     = 8
  63.         NumberOfPlanes   = 1
  64.         PageLength       = 491520
  65.         SaveSize         = 491520
  66.         TotalMemory      = 2097152
  67.         InterlaceMode    = 1
  68.         BufferAddress    = 0x0a0000
  69.  
  70. [TrapRegs]
  71.     0x3c2;
  72.     0x3c4, 0x00-0x04;
  73.     0x3c5;
  74.     0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
  75.     0x3d5;
  76.     0x3c0, 0x00-0x14;
  77.     0x3c1;
  78.     0x3ce, 0x00-0x08;
  79.     0x3cf;
  80.     0x4ae8;
  81.     0xbee8;
  82.     0x96e8;
  83.     0x86e8;
  84.     0x82e8;
  85.  
  86. [SetMode]
  87.  
  88. /*
  89.  *    Set Enhanced Command Registers
  90.  */
  91.  
  92. outw(0x4ae8, 0x0001);
  93. outw(0xbee8, 0x1000);
  94. outw(0xbee8, 0x33ff);
  95. outw(0xbee8, 0x2000);
  96. outw(0xbee8, 0x43ff);
  97. outw(0xbee8, 0xa000);
  98. outw(0xbee8, 0x03ff);
  99. outw(0x96e8, 0x03ff);
  100. outw(0x86e8, 0x0000);
  101. outw(0x82e8, 0x0000);
  102. [comment]
  103.     Graphics Mode: 640 x 480 x 64K colors.
  104.  
  105. [AdapterType]
  106.         S3
  107.  
  108. [ChipSet]
  109.         S3968
  110.  
  111. [ModeInfo]
  112.         ModeAttributes   = 0x18
  113.         BytesPerScanLine = 80
  114.         XResolution      = 640
  115.         YResolution      = 480
  116.         TextRows         = 30
  117.         BitsPerPixel     = 16
  118.         NumberOfPlanes   = 1
  119.         PageLength       = 614400
  120.         SaveSize         = 614400
  121.         TotalMemory      = 2097152
  122.         InterlaceMode    = 1
  123.         BufferAddress    = 0x0a0000
  124.  
  125. [TrapRegs]
  126.     0x3c2;
  127.     0x3c4, 0x00-0x04;
  128.     0x3c5;
  129.     0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
  130.     0x3d5;
  131.     0x3c0, 0x00-0x14;
  132.     0x3c1;
  133.     0x3ce, 0x00-0x08;
  134.     0x3cf;
  135.     0x4ae8;
  136.     0xbee8;
  137.     0x96e8;
  138.     0x86e8;
  139.     0x82e8;
  140.  
  141. [SetMode]
  142.  
  143. /*
  144.  *    Set Enhanced Command Registers
  145.  */
  146.  
  147. outw(0x4ae8, 0x0001);
  148. outw(0xbee8, 0x1000);
  149. outw(0xbee8, 0x33ff);
  150. outw(0xbee8, 0x2000);
  151. outw(0xbee8, 0x43ff);
  152. outw(0xbee8, 0xa000);
  153. outw(0xbee8, 0x03ff);
  154. outw(0x96e8, 0x03ff);
  155. outw(0x86e8, 0x0000);
  156. outw(0x82e8, 0x0000);
  157. [comment]
  158.     Graphics Mode: 640 x 480 x 16M colors.
  159.  
  160. [AdapterType]
  161.         S3
  162.  
  163. [ChipSet]
  164.         S3968
  165.  
  166. [ModeInfo]
  167.         ModeAttributes   = 0x18
  168.         BytesPerScanLine = 80
  169.         XResolution      = 640
  170.         YResolution      = 480
  171.         TextRows         = 30
  172.         BitsPerPixel     = 32
  173.         NumberOfPlanes   = 1
  174.         PageLength       = 1228800
  175.         SaveSize         = 1228800
  176.         TotalMemory      = 2097152
  177.         InterlaceMode    = 1
  178.         BufferAddress    = 0x0a0000
  179.  
  180. [TrapRegs]
  181.     0x3c2;
  182.     0x3c4, 0x00-0x04;
  183.     0x3c5;
  184.     0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
  185.     0x3d5;
  186.     0x3c0, 0x00-0x14;
  187.     0x3c1;
  188.     0x3ce, 0x00-0x08;
  189.     0x3cf;
  190.     0x4ae8;
  191.     0xbee8;
  192.     0x96e8;
  193.     0x86e8;
  194.     0x82e8;
  195.  
  196. [SetMode]
  197.  
  198. /*
  199.  *    Set Enhanced Command Registers
  200.  */
  201.  
  202. outw(0x4ae8, 0x0001);
  203. outw(0xbee8, 0x1000);
  204. outw(0xbee8, 0x33ff);
  205. outw(0xbee8, 0x2000);
  206. outw(0xbee8, 0x43ff);
  207. outw(0xbee8, 0xa000);
  208. outw(0xbee8, 0x03ff);
  209. outw(0x96e8, 0x03ff);
  210. outw(0x86e8, 0x0000);
  211. outw(0x82e8, 0x0000);
  212. [comment]
  213.     Graphics Mode: 800 x 600 x 256 colors.
  214.  
  215. [AdapterType]
  216.         S3
  217.  
  218. [ChipSet]
  219.         S3968
  220.  
  221. [ModeInfo]
  222.         ModeAttributes   = 0x18
  223.         BytesPerScanLine = 100
  224.         XResolution      = 800
  225.         YResolution      = 600
  226.         TextRows         = 37
  227.         BitsPerPixel     = 8
  228.         NumberOfPlanes   = 1
  229.         PageLength       = 614400
  230.         SaveSize         = 614400
  231.         TotalMemory      = 2097152
  232.         InterlaceMode    = 1
  233.         BufferAddress    = 0x0a0000
  234.  
  235. [TrapRegs]
  236.     0x3c2;
  237.     0x3c4, 0x00-0x04;
  238.     0x3c5;
  239.     0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
  240.     0x3d5;
  241.     0x3c0, 0x00-0x14;
  242.     0x3c1;
  243.     0x3ce, 0x00-0x08;
  244.     0x3cf;
  245.     0x4ae8;
  246.     0xbee8;
  247.     0x96e8;
  248.     0x86e8;
  249.     0x82e8;
  250.  
  251. [SetMode]
  252.  
  253. /*
  254.  *    Set Enhanced Command Registers
  255.  */
  256.  
  257. outw(0x4ae8, 0x0007);
  258. outw(0xbee8, 0x1000);
  259. outw(0xbee8, 0x33ff);
  260. outw(0xbee8, 0x2000);
  261. outw(0xbee8, 0x43ff);
  262. outw(0xbee8, 0xa000);
  263. outw(0xbee8, 0x03ff);
  264. outw(0x96e8, 0x03ff);
  265. outw(0x86e8, 0x0000);
  266. outw(0x82e8, 0x0000);
  267. [comment]
  268.     Graphics Mode: 800 x 600 x 64K colors.
  269.  
  270. [AdapterType]
  271.         S3
  272.  
  273. [ChipSet]
  274.         S3968
  275.  
  276. [ModeInfo]
  277.         ModeAttributes   = 0x18
  278.         BytesPerScanLine = 100
  279.         XResolution      = 800
  280.         YResolution      = 600
  281.         TextRows         = 37
  282.         BitsPerPixel     = 16
  283.         NumberOfPlanes   = 1
  284.         PageLength       = 960000
  285.         SaveSize         = 960000
  286.         TotalMemory      = 2097152
  287.         InterlaceMode    = 1
  288.         BufferAddress    = 0x0a0000
  289.  
  290. [TrapRegs]
  291.     0x3c2;
  292.     0x3c4, 0x00-0x04;
  293.     0x3c5;
  294.     0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
  295.     0x3d5;
  296.     0x3c0, 0x00-0x14;
  297.     0x3c1;
  298.     0x3ce, 0x00-0x08;
  299.     0x3cf;
  300.     0x4ae8;
  301.     0xbee8;
  302.     0x96e8;
  303.     0x86e8;
  304.     0x82e8;
  305.  
  306. [SetMode]
  307.  
  308. /*
  309.  *    Set Enhanced Command Registers
  310.  */
  311.  
  312. outw(0x4ae8, 0x0003);
  313. outw(0xbee8, 0x1000);
  314. outw(0xbee8, 0x33ff);
  315. outw(0xbee8, 0x2000);
  316. outw(0xbee8, 0x43ff);
  317. outw(0xbee8, 0xa000);
  318. outw(0xbee8, 0x03ff);
  319. outw(0x96e8, 0x03ff);
  320. outw(0x86e8, 0x0000);
  321. outw(0x82e8, 0x0000);
  322. [comment]
  323.     Graphics Mode: 800 x 600 x 16M colors.
  324.  
  325. [AdapterType]
  326.         S3
  327.  
  328. [ChipSet]
  329.         S3968
  330.  
  331. [ModeInfo]
  332.         ModeAttributes   = 0x18
  333.         BytesPerScanLine = 100
  334.         XResolution      = 800
  335.         YResolution      = 600
  336.         TextRows         = 37
  337.         BitsPerPixel     = 32
  338.         NumberOfPlanes   = 1
  339.         PageLength       = 1920000
  340.         SaveSize         = 1920000
  341.         TotalMemory      = 2097152
  342.         InterlaceMode    = 1
  343.         BufferAddress    = 0x0a0000
  344.  
  345. [TrapRegs]
  346.     0x3c2;
  347.     0x3c4, 0x00-0x04;
  348.     0x3c5;
  349.     0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
  350.     0x3d5;
  351.     0x3c0, 0x00-0x14;
  352.     0x3c1;
  353.     0x3ce, 0x00-0x08;
  354.     0x3cf;
  355.     0x4ae8;
  356.     0xbee8;
  357.     0x96e8;
  358.     0x86e8;
  359.     0x82e8;
  360.  
  361. [SetMode]
  362.  
  363. /*
  364.  *    Set Enhanced Command Registers
  365.  */
  366.  
  367. outw(0x4ae8, 0x0003);
  368. outw(0xbee8, 0x1000);
  369. outw(0xbee8, 0x33ff);
  370. outw(0xbee8, 0x2000);
  371. outw(0xbee8, 0x43ff);
  372. outw(0xbee8, 0xa000);
  373. outw(0xbee8, 0x03ff);
  374. outw(0x96e8, 0x03ff);
  375. outw(0x86e8, 0x0000);
  376. outw(0x82e8, 0x0000);
  377. [comment]
  378.     Graphics Mode: 1024 x 768 x 256 colors.
  379.  
  380. [AdapterType]
  381.         S3
  382.  
  383. [ChipSet]
  384.         S3968
  385.  
  386. [ModeInfo]
  387.         ModeAttributes   = 0x18
  388.         BytesPerScanLine = 128
  389.         XResolution      = 1024
  390.         YResolution      = 768
  391.         TextRows         = 48
  392.         BitsPerPixel     = 8
  393.         NumberOfPlanes   = 1
  394.         PageLength       = 786432
  395.         SaveSize         = 786432
  396.         TotalMemory      = 2097152
  397.         InterlaceMode    = 1
  398.         BufferAddress    = 0x0a0000
  399.  
  400. [TrapRegs]
  401.     0x3c2;
  402.     0x3c4, 0x00-0x04;
  403.     0x3c5;
  404.     0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
  405.     0x3d5;
  406.     0x3c0, 0x00-0x14;
  407.     0x3c1;
  408.     0x3ce, 0x00-0x08;
  409.     0x3cf;
  410.     0x4ae8;
  411.     0xbee8;
  412.     0x96e8;
  413.     0x86e8;
  414.     0x82e8;
  415.  
  416. [SetMode]
  417.  
  418. /*
  419.  *    Set Enhanced Command Registers
  420.  */
  421.  
  422. outw(0x4ae8, 0x0007);
  423. outw(0xbee8, 0x1000);
  424. outw(0xbee8, 0x33ff);
  425. outw(0xbee8, 0x2000);
  426. outw(0xbee8, 0x43ff);
  427. outw(0xbee8, 0xa000);
  428. outw(0xbee8, 0x03ff);
  429. outw(0x96e8, 0x03ff);
  430. outw(0x86e8, 0x0000);
  431. outw(0x82e8, 0x0000);
  432. [comment]
  433.     Graphics Mode: 1024 x 768 x 64K colors.
  434.  
  435. [AdapterType]
  436.         S3
  437.  
  438. [ChipSet]
  439.         S3968
  440.  
  441. [ModeInfo]
  442.         ModeAttributes   = 0x18
  443.         BytesPerScanLine = 128
  444.         XResolution      = 1024
  445.         YResolution      = 768
  446.         TextRows         = 48
  447.         BitsPerPixel     = 16
  448.         NumberOfPlanes   = 1
  449.         PageLength       = 1572864
  450.         SaveSize         = 1572864
  451.         TotalMemory      = 2097152
  452.         InterlaceMode    = 1
  453.         BufferAddress    = 0x0a0000
  454.  
  455. [TrapRegs]
  456.     0x3c2;
  457.     0x3c4, 0x00-0x04;
  458.     0x3c5;
  459.     0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
  460.     0x3d5;
  461.     0x3c0, 0x00-0x14;
  462.     0x3c1;
  463.     0x3ce, 0x00-0x08;
  464.     0x3cf;
  465.     0x4ae8;
  466.     0xbee8;
  467.     0x96e8;
  468.     0x86e8;
  469.     0x82e8;
  470.  
  471. [SetMode]
  472.  
  473. /*
  474.  *    Set Enhanced Command Registers
  475.  */
  476.  
  477. outw(0x4ae8, 0x0007);
  478. outw(0xbee8, 0x1000);
  479. outw(0xbee8, 0x33ff);
  480. outw(0xbee8, 0x2000);
  481. outw(0xbee8, 0x43ff);
  482. outw(0xbee8, 0xa000);
  483. outw(0xbee8, 0x03ff);
  484. outw(0x96e8, 0x03ff);
  485. outw(0x86e8, 0x0000);
  486. outw(0x82e8, 0x0000);
  487. [comment]
  488.     Graphics Mode: 1280 x 1024 x 256 colors.
  489.  
  490. [AdapterType]
  491.         S3
  492.  
  493. [ChipSet]
  494.         S3968
  495.  
  496. [ModeInfo]
  497.         ModeAttributes   = 0x18
  498.         BytesPerScanLine = 160
  499.         XResolution      = 1280
  500.         YResolution      = 1024
  501.         TextRows         = 64
  502.         BitsPerPixel     = 8
  503.         NumberOfPlanes   = 1
  504.         PageLength       = 1310720
  505.         SaveSize         = 1310720
  506.         TotalMemory      = 2097152
  507.         InterlaceMode    = 1
  508.         BufferAddress    = 0x0a0000
  509.  
  510. [TrapRegs]
  511.     0x3c2;
  512.     0x3c4, 0x00-0x04;
  513.     0x3c5;
  514.     0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
  515.     0x3d5;
  516.     0x3c0, 0x00-0x14;
  517.     0x3c1;
  518.     0x3ce, 0x00-0x08;
  519.     0x3cf;
  520.     0x4ae8;
  521.     0xbee8;
  522.     0x96e8;
  523.     0x86e8;
  524.     0x82e8;
  525.  
  526. [SetMode]
  527.  
  528. /*
  529.  *    Set Enhanced Command Registers
  530.  */
  531.  
  532. outw(0x4ae8, 0x0003);
  533. outw(0xbee8, 0x1000);
  534. outw(0xbee8, 0x33ff);
  535. outw(0xbee8, 0x2000);
  536. outw(0xbee8, 0x43ff);
  537. outw(0xbee8, 0xa000);
  538. outw(0xbee8, 0x03ff);
  539. outw(0x96e8, 0x03ff);
  540. outw(0x86e8, 0x0000);
  541. outw(0x82e8, 0x0000);
  542. [comment]
  543.     Graphics Mode: 1152 x 864 x 256 colors.
  544.  
  545. [AdapterType]
  546.         S3
  547.  
  548. [ChipSet]
  549.         S3968
  550.  
  551. [ModeInfo]
  552.         ModeAttributes   = 0x18
  553.         BytesPerScanLine = 144
  554.         XResolution      = 1152
  555.         YResolution      = 864
  556.         TextRows         = 54
  557.         BitsPerPixel     = 8
  558.         NumberOfPlanes   = 1
  559.         PageLength       = 1002240
  560.         SaveSize         = 1002240
  561.         TotalMemory      = 2097152
  562.         InterlaceMode    = 1
  563.         BufferAddress    = 0x0a0000
  564.  
  565. [TrapRegs]
  566.     0x3c2;
  567.     0x3c4, 0x00-0x04;
  568.     0x3c5;
  569.     0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
  570.     0x3d5;
  571.     0x3c0, 0x00-0x14;
  572.     0x3c1;
  573.     0x3ce, 0x00-0x08;
  574.     0x3cf;
  575.     0x4ae8;
  576.     0xbee8;
  577.     0x96e8;
  578.     0x86e8;
  579.     0x82e8;
  580.  
  581. [SetMode]
  582.  
  583. /*
  584.  *    Set Enhanced Command Registers
  585.  */
  586.  
  587. outw(0x4ae8, 0x0007);
  588. outw(0xbee8, 0x1000);
  589. outw(0xbee8, 0x33ff);
  590. outw(0xbee8, 0x2000);
  591. outw(0xbee8, 0x43ff);
  592. outw(0xbee8, 0xa000);
  593. outw(0xbee8, 0x03ff);
  594. outw(0x96e8, 0x03ff);
  595. outw(0x86e8, 0x0000);
  596. outw(0x82e8, 0x0000);
  597. [comment]
  598.     Graphics Mode: 1600 x 1200 x 256 colors.
  599.  
  600. [AdapterType]
  601.         S3
  602.  
  603. [ChipSet]
  604.         S3968
  605.  
  606. [ModeInfo]
  607.         ModeAttributes   = 0x18
  608.         BytesPerScanLine = 200
  609.         XResolution      = 1600
  610.         YResolution      = 1200
  611.         TextRows         = 75
  612.         BitsPerPixel     = 8
  613.         NumberOfPlanes   = 1
  614.         PageLength       = 1920000
  615.         SaveSize         = 1920000
  616.         TotalMemory      = 2097152
  617.         InterlaceMode    = 1
  618.         BufferAddress    = 0x0a0000
  619.  
  620. [TrapRegs]
  621.     0x3c2;
  622.     0x3c4, 0x00-0x04;
  623.     0x3c5;
  624.     0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
  625.     0x3d5;
  626.     0x3c0, 0x00-0x14;
  627.     0x3c1;
  628.     0x3ce, 0x00-0x08;
  629.     0x3cf;
  630.     0x4ae8;
  631.     0xbee8;
  632.     0x96e8;
  633.     0x86e8;
  634.     0x82e8;
  635.  
  636. [SetMode]
  637.  
  638. /*
  639.  *    Set Enhanced Command Registers
  640.  */
  641.  
  642. outw(0x4ae8, 0x0007);
  643. outw(0xbee8, 0x1000);
  644. outw(0xbee8, 0x33ff);
  645. outw(0xbee8, 0x2000);
  646. outw(0xbee8, 0x43ff);
  647. outw(0xbee8, 0xa000);
  648. outw(0xbee8, 0x03ff);
  649. outw(0x96e8, 0x03ff);
  650. outw(0x86e8, 0x0000);
  651. outw(0x82e8, 0x0000);
  652. [comment]
  653.     Text Mode: 40 cols, 25 rows.
  654.  
  655. [AdapterType]
  656.         S3
  657.  
  658. [ChipSet]
  659.         S3968
  660.  
  661. [ModeInfo]
  662.         ModeAttributes   = 0x08
  663.         BytesPerScanLine = 40
  664.         XResolution      = 360
  665.         YResolution      = 400
  666.         XCharSize        = 9
  667.         YCharSize        = 16
  668.         TextRows         = 25
  669.         BitsPerPixel     = 4
  670.         NumberOfPlanes   = 1
  671.         PageLength       = 4000
  672.         SaveSize         = 4000
  673.         TotalMemory      = 2097152
  674.         InterlaceMode    = 1
  675.         BufferAddress    = 0x0b8000
  676.  
  677. [TrapRegs]
  678.     0x3c2;
  679.     0x3c4, 0x00-0x04;
  680.     0x3c5;
  681.     0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
  682.     0x3d5;
  683.     0x3c0, 0x00-0x14;
  684.     0x3c1;
  685.     0x3ce, 0x00-0x08;
  686.     0x3cf;
  687.     0x4ae8;
  688.  
  689. [SetMode]
  690.  
  691. /*
  692.  *    Set Enhanced Command Registers
  693.  */
  694.  
  695. outw(0x4ae8, 0x0000);
  696. [comment]
  697.     Text Mode: 80 cols, 25 rows.
  698.  
  699. [AdapterType]
  700.         S3
  701.  
  702. [ChipSet]
  703.         S3968
  704.  
  705. [ModeInfo]
  706.         ModeAttributes   = 0x08
  707.         BytesPerScanLine = 80
  708.         XResolution      = 720
  709.         YResolution      = 400
  710.         XCharSize        = 9
  711.         YCharSize        = 16
  712.         TextRows         = 25
  713.         BitsPerPixel     = 4
  714.         NumberOfPlanes   = 1
  715.         PageLength       = 4000
  716.         SaveSize         = 4000
  717.         TotalMemory      = 2097152
  718.         InterlaceMode    = 1
  719.         BufferAddress    = 0x0b8000
  720.  
  721. [TrapRegs]
  722.     0x3c2;
  723.     0x3c4, 0x00-0x04, 0x09-0x18;
  724.     0x3c5;
  725.     0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
  726.     0x3d5;
  727.     0x3c0, 0x00-0x14;
  728.     0x3c1;
  729.     0x3ce, 0x00-0x08;
  730.     0x3cf;
  731.     0x4ae8;
  732.  
  733. [SetMode]
  734.  
  735. /*
  736.  *    Set Enhanced Command Registers
  737.  */
  738.  
  739. outw(0x4ae8, 0x0000);
  740. [comment]
  741.     Text Mode: 132 cols, 25 rows.
  742.  
  743. [AdapterType]
  744.         S3
  745.  
  746. [ChipSet]
  747.         S3968
  748.  
  749. [ModeInfo]
  750.         ModeAttributes   = 0x08
  751.         BytesPerScanLine = 132
  752.         XResolution      = 1056
  753.         YResolution      = 400
  754.         XCharSize        = 8
  755.         YCharSize        = 16
  756.         TextRows         = 25
  757.         BitsPerPixel     = 4
  758.         NumberOfPlanes   = 1
  759.         PageLength       = 6600
  760.         SaveSize         = 6600
  761.         TotalMemory      = 2097152
  762.         InterlaceMode    = 1
  763.         BufferAddress    = 0x0b8000
  764.  
  765. [TrapRegs]
  766.     0x3c2;
  767.     0x4ae8;
  768.     0x3c4, 0x00-0x04;
  769.     0x3c5;
  770.     0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
  771.     0x3d5;
  772.     0x3c0, 0x00-0x14;
  773.     0x3c1;
  774.     0x3ce, 0x00-0x08;
  775.     0x3cf;
  776.  
  777. [SetMode]
  778.  
  779. /*
  780.  *    Set Enhanced Command Registers
  781.  */
  782.  
  783. outw(0x4ae8, 0x0000);
  784. outw(0x4ae8, 0x0000);
  785. [comment]
  786.     Text Mode: 132 cols, 43 rows.
  787.  
  788. [AdapterType]
  789.         S3
  790.  
  791. [ChipSet]
  792.         S3968
  793.  
  794. [ModeInfo]
  795.         ModeAttributes   = 0x08
  796.         BytesPerScanLine = 132
  797.         XResolution      = 1056
  798.         YResolution      = 400
  799.         XCharSize        = 8
  800.         YCharSize        = 16
  801.         TextRows         = 43
  802.         BitsPerPixel     = 4
  803.         NumberOfPlanes   = 1
  804.         PageLength       = 11616
  805.         SaveSize         = 11616
  806.         TotalMemory      = 2097152
  807.         InterlaceMode    = 1
  808.         BufferAddress    = 0x0b8000
  809.  
  810. [TrapRegs]
  811.     0x3c2;
  812.     0x4ae8;
  813.     0x3c4, 0x00-0x04;
  814.     0x3c5;
  815.     0x3d4, 0x00-0x18, 0x50-0x5a, 0x5c-0x5e, 0x60-0x62, 0x31-0x35, 0x3a-0x3c, 0x40-0x40, 0x43-0x43, 0x45-0x49, 0x4c-0x4f, 0x42-0x42, 0x67-0x67;
  816.     0x3d5;
  817.     0x3c0, 0x00-0x14;
  818.     0x3c1;
  819.     0x3ce, 0x00-0x08;
  820.     0x3cf;
  821.  
  822. [SetMode]
  823.  
  824. /*
  825.  *    Set Enhanced Command Registers
  826.  */
  827.  
  828. outw(0x4ae8, 0x0000);
  829. outw(0x4ae8, 0x0000);
  830.