VGA Register Programming

Last reviewed: September 16, 1996
Article ID: Q38715
The information in this article applies to:
  • Microsoft Mouse Driver for MS-DOS, versions 6.x, 7.x, 8.x, and 9.0

SUMMARY

The EGA register interface also needs to be used for VGA programming. When programming the VGA in EGA modes, using the interface is identical to using it with the EGA. However, the VGA makes use of an extra Attribute Controller register, 14h, Color Select. Where the EGA has 20 Attribute Controller registers (0 through 13h), the VGA has 21 (0 through 14h).

Using function F7 of the EGA interface needs special attention. When setting the Attribute Controller chip, all registers for the chip need to be set any time the chip is accessed. If a register is not defined, the register interface uses whatever random value is in that location.


KBCategory: kbhw
KBSubcategory:
Additional reference words: 6.11 6.14 6.24 7.00 7.04 7.05 8.00 8.10
8.20 9.00


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 16, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.