How to BSAVE/BLOAD EGA SCREENs 7, 8, 9, 10 in QB 2.x, 3.0 (36022)
The information in this article applies to:
- Microsoft QuickBASIC 3.0
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
- Microsoft Basic Professional Development System for MS-DOS 7.0
- Microsoft Basic Professional Development System for MS-DOS 7.1
This article was previously published under Q36022 SUMMARY
Below is a code example that uses BSAVE and BLOAD to store and
retrieve a screen image in EGA SCREEN modes 7, 8, 9, and 10 to and
from disk. This BSAVE and BLOAD technique required for EGA screens is
not as straightforward as for CGA or Hercules SCREEN modes, because
EGA memory is stored in discontinuous color planes.
Note: A BETTER BLOAD/BSAVE article is available. For an example of
BLOAD and BSAVE of VGA screen modes 11, 12, and 13 (supported in
QuickBasic 4.x, in Basic compiler 6.0 and 6.0b, and in Basic PDS 7.0
and 7.1), in addition to the EGA modes shown below, query on the
following word for a separate, more complete, current article in this
Knowledge Base:
The code example further below works in the following products:
Microsoft QuickBasic versions 3.0, 4.0, 4.0b, and 4.5; Microsoft Basic
Compiler versions 6.0 and 6.0b for MS-DOS; and Microsoft Basic
Professional Development System (PDS) versions 7.0 and 7.1 for MS-DOS.
(Note that EGA SCREENs are not supported in the protected mode of
OS/2.)
QuickBasic versions 2.0 and 2.1 do not support SELECT CASE, and the
program below needs to be modified to use IF statements instead.
QuickBasic versions 1.0, 1.01, and 1.02 do not support the EGA SCREEN
modes (7, 8, 9, and 10), and cannot use this program.
This program can also be found in the May 12, 1987 issue of "PC
Magazine" on pages 403-404.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB36022 |
---|
|