Mail Archives: djgpp/1997/06/26/14:23:13
"Mark Oliver" <markoliv AT mercury DOT kosone DOT com> wrote:
> 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).
Not all the time, perhaps yes in your case.
> Anyway, i was wondering, what exactly this function does. Does
> it disable protected mode completely.
No.
> If so, can i then write a keyboard
> handler in the same way i did in real mode?
No.
> I am unsure as to what exactly
> this does. Could someone please tell me.
Read the FAQ ;-)
It simply changes the attributes of the selectors used by your program in a way
that you aren't limited to the size of your program when using pointers.
Normally the ds selector is limited to the memory in your heap so you can't
write outside it, when you call this function this limit is "removed" (read
changed).
SET
------------------------------------ 0 --------------------------------
Visit my home page: http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013
- Raw text -