Printing To Screen: Difference between revisions

m
The math does not work out for 16 KB of video memory, and according to Wikipedia, there are 32 KB available.
[unchecked revision][unchecked revision]
m (The math does not work out for 16 KB of video memory, and according to Wikipedia, there are 32 KB available.)
Line 19:
For instance, using <tt>0x00</tt> as attribute byte means black-on-black (you'll see nothing). <tt>0x07</tt> is lightgrey-on-black (DOS default), <tt>0x1F</tt> is white-on-blue (Win9x's blue-screen-of-death), <tt>0x2a</tt> is for green-monochrome nostalgics.
 
For colour video cards, you have 16kb32 KB of text video memory to use. Since 80x25 mode does not use all 16kb32 KB (80 x 25 x 2, 4000 bytes per screen), you have 8 display pages to use.
 
When you print to any other page than 0, it will ''not'' appear on screen until that page is ''enabled'' or ''copied'' into the page 0 memory space.
Anonymous user