Microsoft KB Archive/45698
How to BLOAD and BSAVE EGA and VGA Screens in BASIC
PSS ID Number: Q45698 Article last modified on 09-16-1992
|The information in this articles applies to:|
|- The Standard and Professional Editions of Microsoft Visual Basic for MS-DOS, version 1.0 - Microsoft QuickBasic for MS-DOS, versions 4.0, 4.0b, and 4.5 - Microsoft Basic Compiler for MS-DOS, versions 6.0 and 6.0b - Microsoft Basic Professional Development System (PDS) for MS-DOS, versions 7.0 and 7.1|
Summary: An article is available in the Software/Data Library that describes how to BLOAD and BSAVE EGA and VGA SCREEN modes (7, 8, 9, 10, 11, 12, 13) in Microsoft Visual Basic for MS-DOS, version 1.0; in Microsoft Quick Basic for MS-DOS, versions 4.0, 4.0b, and 4.5; in Microsoft Basic Compiler for MS-DOS, versions 6.0 and 6.0b; and in Microsoft Basic PDS for MS-DOS, versions 7.0 and 7.1. This file can be found in the Software/Data Library by searching for the word BSAVEVGA, the Q number of this article, or S12328. BSAVEVGA was archived using the PKware file-compression utility. This article and sample program in the Software/Data Library can also be obtained as an application note (which includes both a printed copy and a disk copy) from Microsoft Product Support Services.
More Information: SCREEN modes 11, 12, and 13 require a VGA card, and SCREEN modes 7, 8, 9, and 10 require an EGA or VGA card. Using Quick Basic or the BASIC compiler, the BLOAD and BSAVE technique required for EGA and VGA screens is more involved than the technique used for CGA screen modes (0, 1, and 2) and Hercules screen modes (0 and 3). EGA and VGA screen modes 7, 8, 9, 10, 11, and 12 are stored differently in video memory than other screen modes.
The following are excellent resources for detailed information concerning EGA and VGA screen modes and how to program for them: “Programmer’s Guide to PC & PS/2 Video Systems” by Richard Wilton, published by Microsoft Press (1987) “The New Peter Norton Programmer’s Guide To The IBM PC & PS/2” by Peter Norton, published by Microsoft Press (1988) “The Waite Group’s Microsoft C Programming for the PC Revised Edition” by Robert Lafore, published by The Waite Group, Inc. (1989) “The Programmer’s PC Sourcebook” by Thom Hogan, published by Microsoft Press (1988)
============================================================================= Copyright Microsoft Corporation 1992.