Mail Archives: djgpp/1998/01/04/20:49:59
>Hi,
>
> I was trying to access the video ram using
> unsigned char *videoptr = (unsigned char *)0xA0000;
>
> (in VBE1.2 640x480x256)
>
> and it didn't work, so I downloaded a tutorial on video memory under
>djgpp, and it used the line
>
> unsigned char *videoptr = (unsigned char *)0xA0000 +
>__djgpp_conventional_base;
>
> What is __djgpp_conventional_base? There is no mention of it in
>Rhide's syntax help and the document didn't explain it.
>
> Also, which is the FASTEST way to access the video memory, enabling
>near pointers or emulating far pointers?? (or is there a better way)
>
> Please note that i'm using VBE1.2 so I can't use linear frames in my
>graphics modes.
>
>
__djgpp_conventional_base is something you need to add to your pointers if you
want to use nearpointers....
I looked for an explaination as well - in the RHIDE online help... I found
reference to it in the _djgpp_nearptr_enable
Near pointers are faster... at least I THINK so...
Keep in mind it disables all memory protection.
Jim the loiterer (wannabe PC game/graphics developer)
http://members.aol.com/qball1723/index.htm
[please don't hate me because I pay too much for poor internet service!!]
- Raw text -