News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Video Memory

Started by Manos, May 27, 2012, 08:28:22 PM

Previous topic - Next topic

Manos

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.

sinsi

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.