delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/26/14:23:13

Message-Id: <m0whDXx-000S1mC@ciati.edu.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT edu DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT edu DOT ar>
Organization: INTI
To: "Mark Oliver" <markoliv AT mercury DOT kosone DOT com>, djgpp AT delorie DOT com
Date: Thu, 26 Jun 1997 15:40:45 +0000
MIME-Version: 1.0
Subject: Re: NEAR POINTERS

"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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019