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 Mime-Version: 1.0 Newsgroups: comp.os.msdos.djgpp To: Fist1000 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk 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