How to Save and Restore the VGA Palette Registers in Basic (50000)
The information in this article applies to:
- 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
This article was previously published under Q50000 SUMMARY
In Microsoft QuickBasic, a program can save and restore the VGA
PALETTE registers using the CALL INTERRUPT statement. This can be
useful when SHELLing to other programs that might change the PALETTE
registers.
This can also be used along with BSAVE and BLOAD to save graphic
images. BLOAD and BSAVE save the binary image of the graphic image,
but not the color PALETTE. The INTERRUPT can be used to read the
PALETTE registers into an array, which can then be saved along with
the graphic image.
This information applies to Microsoft QuickBasic Versions 4.00, 4.00b,
and 4.50 for MS-DOS, to Microsoft Basic Compiler Versions 6.00 and
6.00b for MS-DOS, and Microsoft Basic PDS Version 7.00 for MS-DOS.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB50000 |
---|
|