www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/07/10:19:44

Message-ID: <01BEDFF7.34B8E040@hpfront>
From: George Kinney <GKinney AT nextransport DOT com>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: Re: Question on Pointer
Date: Fri, 6 Aug 1999 10:34:03 -0400
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id KAA09035
Reply-To: djgpp AT delorie DOT com

>would that be because DJGPP is protected mode where seg offset is
>handled by the compiler?
Kind of yes, Kind of no. Borland handles Seg and Offset for the programmer, DPMI uses selector and offset, which is quite different. (but much easier to deal with than overlapping segments and all that garbage).

>In article <7o8upi$f8$1 AT wanadoo DOT fr>,
>  "Jean-Charles Passard" <j DOT passard AT abi-france DOT com> wrote:
>>     I would like to convert an address into a segment and an offset,I know
>> how to do it with Borland C (use of FTP_SEG and FP_OFF), but with djgpp I
>> have not found how to do it
>>
>> Thanks

Personally, I have to ask why you want a segment and offset in a 32bit DPMI program?

If it is to interface with the BIOS or some TSR or other interrupt service that expects such a thing, check out the DJGPP FAQ, it goes into quite a bit of detail on the matter.

You may very well want to track down a copy of the DPMI 1.0 specs, they will give you a much more in-depth explanation of the environment you'll be working in with DJGPP.

Good luck.





- Raw text -


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