home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 April (Special) / Chip-Special_1997-04_cd.bin / spea / mercury / os2s3207 / os2s3207.exe / FIREGL8.PM_ / SVGADATA.PMI
Encoding:
Text File  |  1995-09-01  |  20.9 KB  |  1,050 lines

  1. /*
  2.  *    V7UTIL: SPEA 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      = 8388608
  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      = 8388608
  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      = 8388608
  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      = 8388608
  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      = 8388608
  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      = 8388608
  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      = 8388608
  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      = 8388608
  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: 1024 x 768 x 16M colors.
  489.  
  490. [AdapterType]
  491.         S3
  492.  
  493. [ChipSet]
  494.         S3968
  495.  
  496. [ModeInfo]
  497.         ModeAttributes   = 0x18
  498.         BytesPerScanLine = 128
  499.         XResolution      = 1024
  500.         YResolution      = 768
  501.         TextRows         = 48
  502.         BitsPerPixel     = 32
  503.         NumberOfPlanes   = 1
  504.         PageLength       = 3145728
  505.         SaveSize         = 3145728
  506.         TotalMemory      = 8388608
  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, 0x0007);
  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: 1280 x 1024 x 256 colors.
  544.  
  545. [AdapterType]
  546.         S3
  547.  
  548. [ChipSet]
  549.         S3968
  550.  
  551. [ModeInfo]
  552.         ModeAttributes   = 0x18
  553.         BytesPerScanLine = 160
  554.         XResolution      = 1280
  555.         YResolution      = 1024
  556.         TextRows         = 64
  557.         BitsPerPixel     = 8
  558.         NumberOfPlanes   = 1
  559.         PageLength       = 1310720
  560.         SaveSize         = 1310720
  561.         TotalMemory      = 8388608
  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, 0x0003);
  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: 1280 x 1024 x 64K colors.
  599.  
  600. [AdapterType]
  601.         S3
  602.  
  603. [ChipSet]
  604.         S3968
  605.  
  606. [ModeInfo]
  607.         ModeAttributes   = 0x18
  608.         BytesPerScanLine = 160
  609.         XResolution      = 1280
  610.         YResolution      = 1024
  611.         TextRows         = 64
  612.         BitsPerPixel     = 16
  613.         NumberOfPlanes   = 1
  614.         PageLength       = 2621440
  615.         SaveSize         = 2621440
  616.         TotalMemory      = 8388608
  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, 0x0003);
  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.     Graphics Mode: 1280 x 1024 x 16M colors.
  654.  
  655. [AdapterType]
  656.         S3
  657.  
  658. [ChipSet]
  659.         S3968
  660.  
  661. [ModeInfo]
  662.         ModeAttributes   = 0x18
  663.         BytesPerScanLine = 160
  664.         XResolution      = 1280
  665.         YResolution      = 1024
  666.         TextRows         = 64
  667.         BitsPerPixel     = 32
  668.         NumberOfPlanes   = 1
  669.         PageLength       = 5242880
  670.         SaveSize         = 5242880
  671.         TotalMemory      = 8388608
  672.         InterlaceMode    = 1
  673.         BufferAddress    = 0x0a0000
  674.  
  675. [TrapRegs]
  676.     0x3c2;
  677.     0x3c4, 0x00-0x04;
  678.     0x3c5;
  679.     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;
  680.     0x3d5;
  681.     0x3c0, 0x00-0x14;
  682.     0x3c1;
  683.     0x3ce, 0x00-0x08;
  684.     0x3cf;
  685.     0x4ae8;
  686.     0xbee8;
  687.     0x96e8;
  688.     0x86e8;
  689.     0x82e8;
  690.  
  691. [SetMode]
  692.  
  693. /*
  694.  *    Set Enhanced Command Registers
  695.  */
  696.  
  697. outw(0x4ae8, 0x0003);
  698. outw(0xbee8, 0x1000);
  699. outw(0xbee8, 0x33ff);
  700. outw(0xbee8, 0x2000);
  701. outw(0xbee8, 0x43ff);
  702. outw(0xbee8, 0xa000);
  703. outw(0xbee8, 0x03ff);
  704. outw(0x96e8, 0x03ff);
  705. outw(0x86e8, 0x0000);
  706. outw(0x82e8, 0x0000);
  707. [comment]
  708.     Graphics Mode: 1152 x 864 x 256 colors.
  709.  
  710. [AdapterType]
  711.         S3
  712.  
  713. [ChipSet]
  714.         S3968
  715.  
  716. [ModeInfo]
  717.         ModeAttributes   = 0x18
  718.         BytesPerScanLine = 144
  719.         XResolution      = 1152
  720.         YResolution      = 864
  721.         TextRows         = 54
  722.         BitsPerPixel     = 8
  723.         NumberOfPlanes   = 1
  724.         PageLength       = 995328
  725.         SaveSize         = 995328
  726.         TotalMemory      = 8388608
  727.         InterlaceMode    = 1
  728.         BufferAddress    = 0x0a0000
  729.  
  730. [TrapRegs]
  731.     0x3c2;
  732.     0x3c4, 0x00-0x04;
  733.     0x3c5;
  734.     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;
  735.     0x3d5;
  736.     0x3c0, 0x00-0x14;
  737.     0x3c1;
  738.     0x3ce, 0x00-0x08;
  739.     0x3cf;
  740.     0x4ae8;
  741.     0xbee8;
  742.     0x96e8;
  743.     0x86e8;
  744.     0x82e8;
  745.  
  746. [SetMode]
  747.  
  748. /*
  749.  *    Set Enhanced Command Registers
  750.  */
  751.  
  752. outw(0x4ae8, 0x0007);
  753. outw(0xbee8, 0x1000);
  754. outw(0xbee8, 0x33ff);
  755. outw(0xbee8, 0x2000);
  756. outw(0xbee8, 0x43ff);
  757. outw(0xbee8, 0xa000);
  758. outw(0xbee8, 0x03ff);
  759. outw(0x96e8, 0x03ff);
  760. outw(0x86e8, 0x0000);
  761. outw(0x82e8, 0x0000);
  762. [comment]
  763.     Graphics Mode: 1600 x 1200 x 256 colors.
  764.  
  765. [AdapterType]
  766.         S3
  767.  
  768. [ChipSet]
  769.         S3968
  770.  
  771. [ModeInfo]
  772.         ModeAttributes   = 0x18
  773.         BytesPerScanLine = 200
  774.         XResolution      = 1600
  775.         YResolution      = 1200
  776.         TextRows         = 75
  777.         BitsPerPixel     = 8
  778.         NumberOfPlanes   = 1
  779.         PageLength       = 1920000
  780.         SaveSize         = 1920000
  781.         TotalMemory      = 8388608
  782.         InterlaceMode    = 1
  783.         BufferAddress    = 0x0a0000
  784.  
  785. [TrapRegs]
  786.     0x3c2;
  787.     0x3c4, 0x00-0x04;
  788.     0x3c5;
  789.     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;
  790.     0x3d5;
  791.     0x3c0, 0x00-0x14;
  792.     0x3c1;
  793.     0x3ce, 0x00-0x08;
  794.     0x3cf;
  795.     0x4ae8;
  796.     0xbee8;
  797.     0x96e8;
  798.     0x86e8;
  799.     0x82e8;
  800.  
  801. [SetMode]
  802.  
  803. /*
  804.  *    Set Enhanced Command Registers
  805.  */
  806.  
  807. outw(0x4ae8, 0x0007);
  808. outw(0xbee8, 0x1000);
  809. outw(0xbee8, 0x33ff);
  810. outw(0xbee8, 0x2000);
  811. outw(0xbee8, 0x43ff);
  812. outw(0xbee8, 0xa000);
  813. outw(0xbee8, 0x03ff);
  814. outw(0x96e8, 0x03ff);
  815. outw(0x86e8, 0x0000);
  816. outw(0x82e8, 0x0000);
  817. [comment]
  818.     Graphics Mode: 1600 x 1200 x 64K colors.
  819.  
  820. [AdapterType]
  821.         S3
  822.  
  823. [ChipSet]
  824.         S3968
  825.  
  826. [ModeInfo]
  827.         ModeAttributes   = 0x18
  828.         BytesPerScanLine = 200
  829.         XResolution      = 1600
  830.         YResolution      = 1200
  831.         TextRows         = 75
  832.         BitsPerPixel     = 16
  833.         NumberOfPlanes   = 1
  834.         PageLength       = 3840000
  835.         SaveSize         = 3840000
  836.         TotalMemory      = 8388608
  837.         InterlaceMode    = 1
  838.         BufferAddress    = 0x0a0000
  839.  
  840. [TrapRegs]
  841.     0x3c2;
  842.     0x3c4, 0x00-0x04;
  843.     0x3c5;
  844.     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;
  845.     0x3d5;
  846.     0x3c0, 0x00-0x14;
  847.     0x3c1;
  848.     0x3ce, 0x00-0x08;
  849.     0x3cf;
  850.     0x4ae8;
  851.     0xbee8;
  852.     0x96e8;
  853.     0x86e8;
  854.     0x82e8;
  855.  
  856. [SetMode]
  857.  
  858. /*
  859.  *    Set Enhanced Command Registers
  860.  */
  861.  
  862. outw(0x4ae8, 0x0007);
  863. outw(0xbee8, 0x1000);
  864. outw(0xbee8, 0x33ff);
  865. outw(0xbee8, 0x2000);
  866. outw(0xbee8, 0x43ff);
  867. outw(0xbee8, 0xa000);
  868. outw(0xbee8, 0x03ff);
  869. outw(0x96e8, 0x03ff);
  870. outw(0x86e8, 0x0000);
  871. outw(0x82e8, 0x0000);
  872. [comment]
  873.     Text Mode: 40 cols, 25 rows.
  874.  
  875. [AdapterType]
  876.         S3
  877.  
  878. [ChipSet]
  879.         S3968
  880.  
  881. [ModeInfo]
  882.         ModeAttributes   = 0x08
  883.         BytesPerScanLine = 40
  884.         XResolution      = 360
  885.         YResolution      = 400
  886.         XCharSize        = 9
  887.         YCharSize        = 16
  888.         TextRows         = 25
  889.         BitsPerPixel     = 4
  890.         NumberOfPlanes   = 1
  891.         PageLength       = 4000
  892.         SaveSize         = 4000
  893.         TotalMemory      = 8388608
  894.         InterlaceMode    = 1
  895.         BufferAddress    = 0x0b8000
  896.  
  897. [TrapRegs]
  898.     0x3c2;
  899.     0x3c4, 0x00-0x04;
  900.     0x3c5;
  901.     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;
  902.     0x3d5;
  903.     0x3c0, 0x00-0x14;
  904.     0x3c1;
  905.     0x3ce, 0x00-0x08;
  906.     0x3cf;
  907.     0x4ae8;
  908.  
  909. [SetMode]
  910.  
  911. /*
  912.  *    Set Enhanced Command Registers
  913.  */
  914.  
  915. outw(0x4ae8, 0x0000);
  916. [comment]
  917.     Text Mode: 80 cols, 25 rows.
  918.  
  919. [AdapterType]
  920.         S3
  921.  
  922. [ChipSet]
  923.         S3968
  924.  
  925. [ModeInfo]
  926.         ModeAttributes   = 0x08
  927.         BytesPerScanLine = 80
  928.         XResolution      = 720
  929.         YResolution      = 400
  930.         XCharSize        = 9
  931.         YCharSize        = 16
  932.         TextRows         = 25
  933.         BitsPerPixel     = 4
  934.         NumberOfPlanes   = 1
  935.         PageLength       = 4000
  936.         SaveSize         = 4000
  937.         TotalMemory      = 8388608
  938.         InterlaceMode    = 1
  939.         BufferAddress    = 0x0b8000
  940.  
  941. [TrapRegs]
  942.     0x3c2;
  943.     0x3c4, 0x00-0x04, 0x09-0x18;
  944.     0x3c5;
  945.     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;
  946.     0x3d5;
  947.     0x3c0, 0x00-0x14;
  948.     0x3c1;
  949.     0x3ce, 0x00-0x08;
  950.     0x3cf;
  951.     0x4ae8;
  952.  
  953. [SetMode]
  954.  
  955. /*
  956.  *    Set Enhanced Command Registers
  957.  */
  958.  
  959. outw(0x4ae8, 0x0000);
  960. [comment]
  961.     Text Mode: 132 cols, 25 rows.
  962.  
  963. [AdapterType]
  964.         S3
  965.  
  966. [ChipSet]
  967.         S3968
  968.  
  969. [ModeInfo]
  970.         ModeAttributes   = 0x08
  971.         BytesPerScanLine = 132
  972.         XResolution      = 1056
  973.         YResolution      = 400
  974.         XCharSize        = 8
  975.         YCharSize        = 16
  976.         TextRows         = 25
  977.         BitsPerPixel     = 4
  978.         NumberOfPlanes   = 1
  979.         PageLength       = 6600
  980.         SaveSize         = 6600
  981.         TotalMemory      = 8388608
  982.         InterlaceMode    = 1
  983.         BufferAddress    = 0x0b8000
  984.  
  985. [TrapRegs]
  986.     0x3c2;
  987.     0x4ae8;
  988.     0x3c4, 0x00-0x04;
  989.     0x3c5;
  990.     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;
  991.     0x3d5;
  992.     0x3c0, 0x00-0x14;
  993.     0x3c1;
  994.     0x3ce, 0x00-0x08;
  995.     0x3cf;
  996.  
  997. [SetMode]
  998.  
  999. /*
  1000.  *    Set Enhanced Command Registers
  1001.  */
  1002.  
  1003. outw(0x4ae8, 0x0000);
  1004. outw(0x4ae8, 0x0000);
  1005. [comment]
  1006.     Text Mode: 132 cols, 43 rows.
  1007.  
  1008. [AdapterType]
  1009.         S3
  1010.  
  1011. [ChipSet]
  1012.         S3968
  1013.  
  1014. [ModeInfo]
  1015.         ModeAttributes   = 0x08
  1016.         BytesPerScanLine = 132
  1017.         XResolution      = 1056
  1018.         YResolution      = 400
  1019.         XCharSize        = 8
  1020.         YCharSize        = 16
  1021.         TextRows         = 43
  1022.         BitsPerPixel     = 4
  1023.         NumberOfPlanes   = 1
  1024.         PageLength       = 11616
  1025.         SaveSize         = 11616
  1026.         TotalMemory      = 8388608
  1027.         InterlaceMode    = 1
  1028.         BufferAddress    = 0x0b8000
  1029.  
  1030. [TrapRegs]
  1031.     0x3c2;
  1032.     0x4ae8;
  1033.     0x3c4, 0x00-0x04;
  1034.     0x3c5;
  1035.     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;
  1036.     0x3d5;
  1037.     0x3c0, 0x00-0x14;
  1038.     0x3c1;
  1039.     0x3ce, 0x00-0x08;
  1040.     0x3cf;
  1041.  
  1042. [SetMode]
  1043.  
  1044. /*
  1045.  *    Set Enhanced Command Registers
  1046.  */
  1047.  
  1048. outw(0x4ae8, 0x0000);
  1049. outw(0x4ae8, 0x0000);
  1050.