The MASM Forum

Miscellaneous => 16 bit DOS Programming => Topic started by: Manos on May 27, 2012, 08:28:22 PM

Title: Video Memory
Post by: Manos on May 27, 2012, 08:28:22 PM
Here is an example of using video mode 800x600x256 colors
in real mode using banks.
The color number is from 0,(black), up to 255.

Manos.
Title: Re: Video Memory
Post by: sinsi on June 09, 2012, 04:52:49 PM
You are assuming a lot
- A000 might not be the right segment for writing to (usually is)
- window size might not be 64KB (almost always is)
- window granularity might not be 64KB (lots of 4/16/64KB cards around)
- bytes per line might not be 800 (usually is for 256-colour modes)

Use function 4f01 to get the proper information.