Author Topic: Video Memory  (Read 2158 times)

Manos

  • Guest
Video Memory
« 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.
« Last Edit: May 27, 2012, 10:12:22 PM by Manos »

sinsi

  • Member
  • *****
  • Posts: 1005
Re: Video Memory
« Reply #1 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.
I can walk on water but stagger on beer.