delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/08/04:13:15

Sender: vheyndri AT rug DOT ac DOT be
Message-Id: <3552BE34.414A@rug.ac.be>
Date: Fri, 08 May 1998 10:11:32 +0200
From: Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be>
Mime-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
To: Fist1000 <fist1000 AT aol DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: Converting Protected-Mode Addresses to Real-Mode SEG:OFS pairs
References: <1998050803552400 DOT XAA26070 AT ladder03 DOT news DOT aol DOT com>

Fist1000 wrote:
> What is the math to nab the segment and offset from a protected-mode address?

You cannot do what you want to do in general (which is not the same as
what you said you want to do BTW). The difference with flat-mode
pointers and how this relates to real-mode addresses, and how to convert
them, if possible, is described in the FAQ which you can get from the
same source as you got DJGPP itself..

Regards.

-- 
 \ Vik /-_-_-_-_-_-_/
  \___/ Heyndrickx /
   \ /-_-_-_-_-_-_/  Knight in the Order of the Unsigned Types

- Raw text -


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