home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 April (Special) / Chip-Special_1997-04_cd.bin / spea / mercury / os2s3207 / os2s3207.exe / MIR642MB.PM_ / SVGADATA.PMI
Encoding:
Text File  |  1995-02-02  |  15.5 KB  |  777 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 AT&T Microelectronics, Inc.
  45.  */
  46.  
  47. [comment]
  48.     Graphics Mode: 640 x 480 x 256 colors.
  49.  
  50. [AdapterType]
  51.         S3
  52.  
  53. [ChipSet]
  54.         S3DXP
  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.         S3DXP
  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.         S3DXP
  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.         S3DXP
  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.         S3DXP
  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.         S3DXP
  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.         S3DXP
  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.         S3DXP
  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.         S3DXP
  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    = 0
  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 870 x 256 colors.
  544.  
  545. [AdapterType]
  546.         S3
  547.  
  548. [ChipSet]
  549.         S3DXP
  550.  
  551. [ModeInfo]
  552.         ModeAttributes   = 0x18
  553.         BytesPerScanLine = 144
  554.         XResolution      = 1152
  555.         YResolution      = 870
  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.     Text Mode: 40 cols, 25 rows.
  599.  
  600. [AdapterType]
  601.         S3
  602.  
  603. [ChipSet]
  604.         S3DXP
  605.  
  606. [ModeInfo]
  607.         ModeAttributes   = 0x08
  608.         BytesPerScanLine = 40
  609.         XResolution      = 360
  610.         YResolution      = 400
  611.         XCharSize        = 9
  612.         YCharSize        = 16
  613.         TextRows         = 25
  614.         BitsPerPixel     = 4
  615.         NumberOfPlanes   = 1
  616.         PageLength       = 4000
  617.         SaveSize         = 4000
  618.         TotalMemory      = 2097152
  619.         InterlaceMode    = 1
  620.         BufferAddress    = 0x0b8000
  621.  
  622. [TrapRegs]
  623.     0x3c2;
  624.     0x3c4, 0x00-0x04;
  625.     0x3c5;
  626.     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;
  627.     0x3d5;
  628.     0x3c0, 0x00-0x14;
  629.     0x3c1;
  630.     0x3ce, 0x00-0x08;
  631.     0x3cf;
  632.     0x4ae8;
  633.  
  634. [SetMode]
  635.  
  636. /*
  637.  *    Set Enhanced Command Registers
  638.  */
  639.  
  640. outw(0x4ae8, 0x0000);
  641. rmwb(0x3d4, 0x3d5, 0x40, 0xfe, 0x00);
  642. [comment]
  643.     Text Mode: 80 cols, 25 rows.
  644.  
  645. [AdapterType]
  646.         S3
  647.  
  648. [ChipSet]
  649.         S3DXP
  650.  
  651. [ModeInfo]
  652.         ModeAttributes   = 0x08
  653.         BytesPerScanLine = 80
  654.         XResolution      = 720
  655.         YResolution      = 400
  656.         XCharSize        = 9
  657.         YCharSize        = 16
  658.         TextRows         = 25
  659.         BitsPerPixel     = 4
  660.         NumberOfPlanes   = 1
  661.         PageLength       = 4000
  662.         SaveSize         = 4000
  663.         TotalMemory      = 2097152
  664.         InterlaceMode    = 1
  665.         BufferAddress    = 0x0b8000
  666.  
  667. [TrapRegs]
  668.     0x3c2;
  669.     0x3c4, 0x00-0x04, 0x09-0x18;
  670.     0x3c5;
  671.     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;
  672.     0x3d5;
  673.     0x3c0, 0x00-0x14;
  674.     0x3c1;
  675.     0x3ce, 0x00-0x08;
  676.     0x3cf;
  677.     0x4ae8;
  678.  
  679. [SetMode]
  680.  
  681. /*
  682.  *    Set Enhanced Command Registers
  683.  */
  684.  
  685. outw(0x4ae8, 0x0000);
  686. rmwb(0x3d4, 0x3d5, 0x40, 0xfe, 0x00);
  687. [comment]
  688.     Text Mode: 132 cols, 25 rows.
  689.  
  690. [AdapterType]
  691.         S3
  692.  
  693. [ChipSet]
  694.         S3DXP
  695.  
  696. [ModeInfo]
  697.         ModeAttributes   = 0x08
  698.         BytesPerScanLine = 132
  699.         XResolution      = 1056
  700.         YResolution      = 400
  701.         XCharSize        = 8
  702.         YCharSize        = 16
  703.         TextRows         = 25
  704.         BitsPerPixel     = 4
  705.         NumberOfPlanes   = 1
  706.         PageLength       = 6600
  707.         SaveSize         = 6600
  708.         TotalMemory      = 2097152
  709.         InterlaceMode    = 1
  710.         BufferAddress    = 0x0b8000
  711.  
  712. [TrapRegs]
  713.     0x3c2;
  714.     0x4ae8;
  715.     0x3c4, 0x00-0x04;
  716.     0x3c5;
  717.     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;
  718.     0x3d5;
  719.     0x3c0, 0x00-0x14;
  720.     0x3c1;
  721.     0x3ce, 0x00-0x08;
  722.     0x3cf;
  723.  
  724. [SetMode]
  725.  
  726. /*
  727.  *    Set Enhanced Command Registers
  728.  */
  729.  
  730. outw(0x4ae8, 0x0000);
  731. rmwb(0x3d4, 0x3d5, 0x40, 0xfe, 0x00);
  732. [comment]
  733.     Text Mode: 132 cols, 43 rows.
  734.  
  735. [AdapterType]
  736.         S3
  737.  
  738. [ChipSet]
  739.         S3DXP
  740.  
  741. [ModeInfo]
  742.         ModeAttributes   = 0x08
  743.         BytesPerScanLine = 132
  744.         XResolution      = 1056
  745.         YResolution      = 400
  746.         XCharSize        = 8
  747.         YCharSize        = 16
  748.         TextRows         = 43
  749.         BitsPerPixel     = 4
  750.         NumberOfPlanes   = 1
  751.         PageLength       = 11616
  752.         SaveSize         = 11616
  753.         TotalMemory      = 2097152
  754.         InterlaceMode    = 1
  755.         BufferAddress    = 0x0b8000
  756.  
  757. [TrapRegs]
  758.     0x3c2;
  759.     0x4ae8;
  760.     0x3c4, 0x00-0x04;
  761.     0x3c5;
  762.     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;
  763.     0x3d5;
  764.     0x3c0, 0x00-0x14;
  765.     0x3c1;
  766.     0x3ce, 0x00-0x08;
  767.     0x3cf;
  768.  
  769. [SetMode]
  770.  
  771. /*
  772.  *    Set Enhanced Command Registers
  773.  */
  774.  
  775. outw(0x4ae8, 0x0000);
  776. rmwb(0x3d4, 0x3d5, 0x40, 0xfe, 0x00);
  777.