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.
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.