[comp.os.msdos.programmer] 2 VGA questions

bk19+@andrew.cmu.edu (Bradley D. Keister) (12/18/90)

1.
I'd like to be able to use the 43/50-line text mode for EGA/VGA in a TP 5.x
program, and would also like to be able to save the memory map of the text
screen in order to swap images in and out.  For 25-line mode, I simply use
B000H or B800H as the starting address, but this doesn't work for 43/50.
Is there another address I should use, or is it more complicated than that?
In TC++, there are GetText and PutText commands which do screen saves and
restores without having to know the addresses, but there's no counterpart
in TP 5.x.

2.
In TP 5.x, there's a SetRGBPalette for setting the RGB intensites of a
palette entry.  How can I *get* the palette information in the first place,
so I know what I'm dealing with.  There's no GetRGBPalette command.  
Alternatively, if I could know what the default palette RGB settings are,
I can keep track of any changes along the way.  How do I find the default
settings?

Brad Keister
Physics Dept.
Carnegie Mellon U

reply to:

keister@poincare.phys.cmu.edu