home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 April (Special) / Chip-Special_1997-04_cd.bin / spea / mercury / os2s3207 / os2s3207.exe / MIR641MB.PM_ / SVGADATA.PMI
Encoding:
Text File  |  1995-02-02  |  12.3 KB  |  612 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      = 1048576
  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      = 1048576
  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     = 24
  173.         NumberOfPlanes   = 1
  174.         PageLength       = 921600
  175.         SaveSize         = 921600
  176.         TotalMemory      = 1048576
  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      = 1048576
  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      = 1048576
  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: 1024 x 768 x 256 colors.
  324.  
  325. [AdapterType]
  326.         S3
  327.  
  328. [ChipSet]
  329.         S3DXP
  330.  
  331. [ModeInfo]
  332.         ModeAttributes   = 0x18
  333.         BytesPerScanLine = 128
  334.         XResolution      = 1024
  335.         YResolution      = 768
  336.         TextRows         = 48
  337.         BitsPerPixel     = 8
  338.         NumberOfPlanes   = 1
  339.         PageLength       = 786432
  340.         SaveSize         = 786432
  341.         TotalMemory      = 1048576
  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, 0x0007);
  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: 1152 x 870 x 256 colors.
  379.  
  380. [AdapterType]
  381.         S3
  382.  
  383. [ChipSet]
  384.         S3DXP
  385.  
  386. [ModeInfo]
  387.         ModeAttributes   = 0x18
  388.         BytesPerScanLine = 144
  389.         XResolution      = 1152
  390.         YResolution      = 870
  391.         TextRows         = 54
  392.         BitsPerPixel     = 8
  393.         NumberOfPlanes   = 1
  394.         PageLength       = 1002240
  395.         SaveSize         = 1002240
  396.         TotalMemory      = 1048576
  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.     Text Mode: 40 cols, 25 rows.
  434.  
  435. [AdapterType]
  436.         S3
  437.  
  438. [ChipSet]
  439.         S3DXP
  440.  
  441. [ModeInfo]
  442.         ModeAttributes   = 0x08
  443.         BytesPerScanLine = 40
  444.         XResolution      = 360
  445.         YResolution      = 400
  446.         XCharSize        = 9
  447.         YCharSize        = 16
  448.         TextRows         = 25
  449.         BitsPerPixel     = 4
  450.         NumberOfPlanes   = 1
  451.         PageLength       = 4000
  452.         SaveSize         = 4000
  453.         TotalMemory      = 1048576
  454.         InterlaceMode    = 1
  455.         BufferAddress    = 0x0b8000
  456.  
  457. [TrapRegs]
  458.     0x3c2;
  459.     0x3c4, 0x00-0x04;
  460.     0x3c5;
  461.     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;
  462.     0x3d5;
  463.     0x3c0, 0x00-0x14;
  464.     0x3c1;
  465.     0x3ce, 0x00-0x08;
  466.     0x3cf;
  467.     0x4ae8;
  468.  
  469. [SetMode]
  470.  
  471. /*
  472.  *    Set Enhanced Command Registers
  473.  */
  474.  
  475. outw(0x4ae8, 0x0000);
  476. rmwb(0x3d4, 0x3d5, 0x40, 0xfe, 0x00);
  477. [comment]
  478.     Text Mode: 80 cols, 25 rows.
  479.  
  480. [AdapterType]
  481.         S3
  482.  
  483. [ChipSet]
  484.         S3DXP
  485.  
  486. [ModeInfo]
  487.         ModeAttributes   = 0x08
  488.         BytesPerScanLine = 80
  489.         XResolution      = 720
  490.         YResolution      = 400
  491.         XCharSize        = 9
  492.         YCharSize        = 16
  493.         TextRows         = 25
  494.         BitsPerPixel     = 4
  495.         NumberOfPlanes   = 1
  496.         PageLength       = 4000
  497.         SaveSize         = 4000
  498.         TotalMemory      = 1048576
  499.         InterlaceMode    = 1
  500.         BufferAddress    = 0x0b8000
  501.  
  502. [TrapRegs]
  503.     0x3c2;
  504.     0x3c4, 0x00-0x04, 0x09-0x18;
  505.     0x3c5;
  506.     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;
  507.     0x3d5;
  508.     0x3c0, 0x00-0x14;
  509.     0x3c1;
  510.     0x3ce, 0x00-0x08;
  511.     0x3cf;
  512.     0x4ae8;
  513.  
  514. [SetMode]
  515.  
  516. /*
  517.  *    Set Enhanced Command Registers
  518.  */
  519.  
  520. outw(0x4ae8, 0x0000);
  521. rmwb(0x3d4, 0x3d5, 0x40, 0xfe, 0x00);
  522. [comment]
  523.     Text Mode: 132 cols, 25 rows.
  524.  
  525. [AdapterType]
  526.         S3
  527.  
  528. [ChipSet]
  529.         S3DXP
  530.  
  531. [ModeInfo]
  532.         ModeAttributes   = 0x08
  533.         BytesPerScanLine = 132
  534.         XResolution      = 1056
  535.         YResolution      = 400
  536.         XCharSize        = 8
  537.         YCharSize        = 16
  538.         TextRows         = 25
  539.         BitsPerPixel     = 4
  540.         NumberOfPlanes   = 1
  541.         PageLength       = 6600
  542.         SaveSize         = 6600
  543.         TotalMemory      = 1048576
  544.         InterlaceMode    = 1
  545.         BufferAddress    = 0x0b8000
  546.  
  547. [TrapRegs]
  548.     0x3c2;
  549.     0x4ae8;
  550.     0x3c4, 0x00-0x04;
  551.     0x3c5;
  552.     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;
  553.     0x3d5;
  554.     0x3c0, 0x00-0x14;
  555.     0x3c1;
  556.     0x3ce, 0x00-0x08;
  557.     0x3cf;
  558.  
  559. [SetMode]
  560.  
  561. /*
  562.  *    Set Enhanced Command Registers
  563.  */
  564.  
  565. outw(0x4ae8, 0x0000);
  566. rmwb(0x3d4, 0x3d5, 0x40, 0xfe, 0x00);
  567. [comment]
  568.     Text Mode: 132 cols, 43 rows.
  569.  
  570. [AdapterType]
  571.         S3
  572.  
  573. [ChipSet]
  574.         S3DXP
  575.  
  576. [ModeInfo]
  577.         ModeAttributes   = 0x08
  578.         BytesPerScanLine = 132
  579.         XResolution      = 1056
  580.         YResolution      = 400
  581.         XCharSize        = 8
  582.         YCharSize        = 16
  583.         TextRows         = 43
  584.         BitsPerPixel     = 4
  585.         NumberOfPlanes   = 1
  586.         PageLength       = 11616
  587.         SaveSize         = 11616
  588.         TotalMemory      = 1048576
  589.         InterlaceMode    = 1
  590.         BufferAddress    = 0x0b8000
  591.  
  592. [TrapRegs]
  593.     0x3c2;
  594.     0x4ae8;
  595.     0x3c4, 0x00-0x04;
  596.     0x3c5;
  597.     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;
  598.     0x3d5;
  599.     0x3c0, 0x00-0x14;
  600.     0x3c1;
  601.     0x3ce, 0x00-0x08;
  602.     0x3cf;
  603.  
  604. [SetMode]
  605.  
  606. /*
  607.  *    Set Enhanced Command Registers
  608.  */
  609.  
  610. outw(0x4ae8, 0x0000);
  611. rmwb(0x3d4, 0x3d5, 0x40, 0xfe, 0x00);
  612.