Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: "Mark Oliver" , djgpp AT delorie DOT com Date: Thu, 26 Jun 1997 15:40:45 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: NEAR POINTERS Precedence: bulk "Mark Oliver" 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