cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/04/03:36:19

Date: Sun, 4 Apr 1999 09:34:15 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Niclas <niclas_flysjo AT hotmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: DPMI function 800h,
In-Reply-To: <7e4mju$3ri$1@cubacola.tninet.se>
Message-ID: <Pine.SUN.3.91.990404093350.19395K-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sat, 3 Apr 1999, Niclas wrote:

> Is the linear adress that I'll get from the "Physical Address Mapping" DPMI
> function 800h, ready to use as an offset.

No.  You need to create a selector which has that linear address as
its base address.  And *then* you can use e.g. _farptr functions to
access the memory via the selector.

Please read section 18.7 of the DJGPP FAQ list (v2/faq211b.zip from
the same place you got DJGPP), it explains this issue and shows some
code that you could use as an example.

- Raw text -


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