Mail Archives: djgpp/1997/01/26/11:19:04
"Russ Hubbard" <hubbardr AT jntf DOT osd DOT mil> wrote:
>How would I create an array for video memory in djgpp?
>Currently I have:
>
>char far *video_buffer = (char far)0xA0000000L;
>
This won't work, but that's not the reason for my reply. I use the
Mega Graphics Library (MGL) from SciTech Software, and one of the main
reasons for not using my own code is that, according to SciTech, you
should not assume that video memory always begins at A000:0000. Also,
there are SVGA cards coming onto the market which are not based on VGA
hardware, which means that VGA registers are missing, so your program
could wait for ever for a retrace which never takes place. The MGL
takes care of all this for me. (I have no connection to SciTech
Software, except as a happy customer).
Adrian.
- Raw text -