home *** CD-ROM | disk | FTP | other *** search
/ Media Gallery 1995 June / MG6.ISO / spea / install / merp64 / merpro.pm_ / SVGADATA.PMI
Encoding:
Text File  |  1995-02-02  |  18.9 KB  |  942 lines

  1. /*
  2.  *    OS/2 2.1 SVGA PMI-File Generator
  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 Texas Instruments
  45.  */
  46.  
  47. [comment]
  48.     Graphics Mode: 640 x 480 x 256 colors.
  49.  
  50. [AdapterType]
  51.         S3
  52.  
  53. [ChipSet]
  54.         S386C928
  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      = 4194304
  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.         S386C928
  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      = 4194304
  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.         S386C928
  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      = 4194304
  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.         S386C928
  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      = 4194304
  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.         S386C928
  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      = 4194304
  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.         S386C928
  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      = 4194304
  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.         S386C928
  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      = 4194304
  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.         S386C928
  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      = 4194304
  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.         S386C928
  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      = 4194304
  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.         S386C928
  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      = 4194304
  562.         InterlaceMode    = 0
  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.         S386C928
  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      = 4194304
  617.         InterlaceMode    = 0
  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: 1152 x 870 x 256 colors.
  654.  
  655. [AdapterType]
  656.         S3
  657.  
  658. [ChipSet]
  659.         S386C928
  660.  
  661. [ModeInfo]
  662.         ModeAttributes   = 0x18
  663.         BytesPerScanLine = 144
  664.         XResolution      = 1152
  665.         YResolution      = 870
  666.         TextRows         = 54
  667.         BitsPerPixel     = 8
  668.         NumberOfPlanes   = 1
  669.         PageLength       = 1002240
  670.         SaveSize         = 1002240
  671.         TotalMemory      = 4194304
  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, 0x0007);
  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: 1536 x 1152 x 256 colors.
  709.  
  710. [AdapterType]
  711.         S3
  712.  
  713. [ChipSet]
  714.         S386C928
  715.  
  716. [ModeInfo]
  717.         ModeAttributes   = 0x18
  718.         BytesPerScanLine = 192
  719.         XResolution      = 1536
  720.         YResolution      = 1152
  721.         TextRows         = 72
  722.         BitsPerPixel     = 8
  723.         NumberOfPlanes   = 1
  724.         PageLength       = 1769472
  725.         SaveSize         = 1769472
  726.         TotalMemory      = 4194304
  727.         InterlaceMode    = 0
  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.     Text Mode: 40 cols, 25 rows.
  764.  
  765. [AdapterType]
  766.         S3
  767.  
  768. [ChipSet]
  769.         S386C928
  770.  
  771. [ModeInfo]
  772.         ModeAttributes   = 0x08
  773.         BytesPerScanLine = 40
  774.         XResolution      = 360
  775.         YResolution      = 400
  776.         XCharSize        = 9
  777.         YCharSize        = 16
  778.         TextRows         = 25
  779.         BitsPerPixel     = 4
  780.         NumberOfPlanes   = 1
  781.         PageLength       = 4000
  782.         SaveSize         = 4000
  783.         TotalMemory      = 4194304
  784.         InterlaceMode    = 1
  785.         BufferAddress    = 0x0b8000
  786.  
  787. [TrapRegs]
  788.     0x3c2;
  789.     0x3c4, 0x00-0x04;
  790.     0x3c5;
  791.     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;
  792.     0x3d5;
  793.     0x3c0, 0x00-0x14;
  794.     0x3c1;
  795.     0x3ce, 0x00-0x08;
  796.     0x3cf;
  797.     0x4ae8;
  798.  
  799. [SetMode]
  800.  
  801. /*
  802.  *    Set Enhanced Command Registers
  803.  */
  804.  
  805. outw(0x4ae8, 0x0000);
  806. rmwb(0x3d4, 0x3d5, 0x40, 0xfe, 0x00);
  807. [comment]
  808.     Text Mode: 80 cols, 25 rows.
  809.  
  810. [AdapterType]
  811.         S3
  812.  
  813. [ChipSet]
  814.         S386C928
  815.  
  816. [ModeInfo]
  817.         ModeAttributes   = 0x08
  818.         BytesPerScanLine = 80
  819.         XResolution      = 720
  820.         YResolution      = 400
  821.         XCharSize        = 9
  822.         YCharSize        = 16
  823.         TextRows         = 25
  824.         BitsPerPixel     = 4
  825.         NumberOfPlanes   = 1
  826.         PageLength       = 4000
  827.         SaveSize         = 4000
  828.         TotalMemory      = 4194304
  829.         InterlaceMode    = 1
  830.         BufferAddress    = 0x0b8000
  831.  
  832. [TrapRegs]
  833.     0x3c2;
  834.     0x3c4, 0x00-0x04, 0x09-0x18;
  835.     0x3c5;
  836.     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;
  837.     0x3d5;
  838.     0x3c0, 0x00-0x14;
  839.     0x3c1;
  840.     0x3ce, 0x00-0x08;
  841.     0x3cf;
  842.     0x4ae8;
  843.  
  844. [SetMode]
  845.  
  846. /*
  847.  *    Set Enhanced Command Registers
  848.  */
  849.  
  850. outw(0x4ae8, 0x0000);
  851. rmwb(0x3d4, 0x3d5, 0x40, 0xfe, 0x00);
  852. [comment]
  853.     Text Mode: 132 cols, 25 rows.
  854.  
  855. [AdapterType]
  856.         S3
  857.  
  858. [ChipSet]
  859.         S386C928
  860.  
  861. [ModeInfo]
  862.         ModeAttributes   = 0x08
  863.         BytesPerScanLine = 132
  864.         XResolution      = 1056
  865.         YResolution      = 400
  866.         XCharSize        = 8
  867.         YCharSize        = 16
  868.         TextRows         = 25
  869.         BitsPerPixel     = 4
  870.         NumberOfPlanes   = 1
  871.         PageLength       = 6600
  872.         SaveSize         = 6600
  873.         TotalMemory      = 4194304
  874.         InterlaceMode    = 1
  875.         BufferAddress    = 0x0b8000
  876.  
  877. [TrapRegs]
  878.     0x3c2;
  879.     0x4ae8;
  880.     0x3c4, 0x00-0x04;
  881.     0x3c5;
  882.     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;
  883.     0x3d5;
  884.     0x3c0, 0x00-0x14;
  885.     0x3c1;
  886.     0x3ce, 0x00-0x08;
  887.     0x3cf;
  888.  
  889. [SetMode]
  890.  
  891. /*
  892.  *    Set Enhanced Command Registers
  893.  */
  894.  
  895. outw(0x4ae8, 0x0000);
  896. rmwb(0x3d4, 0x3d5, 0x40, 0xfe, 0x00);
  897. [comment]
  898.     Text Mode: 132 cols, 43 rows.
  899.  
  900. [AdapterType]
  901.         S3
  902.  
  903. [ChipSet]
  904.         S386C928
  905.  
  906. [ModeInfo]
  907.         ModeAttributes   = 0x08
  908.         BytesPerScanLine = 132
  909.         XResolution      = 1056
  910.         YResolution      = 400
  911.         XCharSize        = 8
  912.         YCharSize        = 16
  913.         TextRows         = 43
  914.         BitsPerPixel     = 4
  915.         NumberOfPlanes   = 1
  916.         PageLength       = 11616
  917.         SaveSize         = 11616
  918.         TotalMemory      = 4194304
  919.         InterlaceMode    = 1
  920.         BufferAddress    = 0x0b8000
  921.  
  922. [TrapRegs]
  923.     0x3c2;
  924.     0x4ae8;
  925.     0x3c4, 0x00-0x04;
  926.     0x3c5;
  927.     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;
  928.     0x3d5;
  929.     0x3c0, 0x00-0x14;
  930.     0x3c1;
  931.     0x3ce, 0x00-0x08;
  932.     0x3cf;
  933.  
  934. [SetMode]
  935.  
  936. /*
  937.  *    Set Enhanced Command Registers
  938.  */
  939.  
  940. outw(0x4ae8, 0x0000);
  941. rmwb(0x3d4, 0x3d5, 0x40, 0xfe, 0x00);
  942.