Mail Archives: djgpp/1996/08/20/23:01:25
Tony O'Bryan wrote:
>
> Will __crt0_nearptr_enable allow a pointer to linear address 0xa0000 to
> directly access the video screen?
Yes, but you have to reference all your direct memory writes with
__djgpp_conventional_base to get the *correct* pmode address to write to.
So, the correct address for the VGA screen would be the following:
char *VGAscreen = (char *) (0xA0000 + __djgpp_conventional_base);
Read the description of the __djgpp_nearptr_enable() function for more
info, including a complete example (using the text screen, but the
technique is the same).
John
--
----------------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| Proud owner of what might one day | Plan: To make Bill Gates suffer |
| be a spectacular MUD... | Tagline: <under construction> |
----------------------------------------------------------------------------
- Raw text -