Mail Archives: djgpp/1997/06/26/12:21:18
>
> Ok, quick question...I use __djgpp_nearpt_enable() so i can write directly
> to video memory (it is so much faster than using memput or the poke
> functions). Anyway, i was wondering, what exactly this function does.
It sets the limit of your DS selector to -1 (0xFFFFFFFF).
> Does
> it disable protected mode completely.
It effectively does, since your limit is now 4 GB, and memory will wrap.
This means that through DS you have access to the entire memory on the
system.
Note that NT and Linux will not allow you to do this.
Andrew
- Raw text -