www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/16/08:16:47

Date: Sun, 16 Mar 1997 16:01:55 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Daryl DOT Cooper AT Bigfoot DOT Com
cc: djgpp AT delorie DOT com
Subject: Re: Selector:Offset32 pair in DJGPP
In-Reply-To: <33298629.7A01@geocities.com>
Message-ID: <Pine.SUN.3.91.970316160120.12150Y-100000@is>
MIME-Version: 1.0

On Fri, 14 Mar 1997, Daryl Cooper wrote:

> can anyone tell me how to get a selector:offset pair from a pointer in
> c. I need this for some lowlevel ASM stuff, and it would be really
> helpfull if anyone could help me with this, Thanx

For a pointer to an ordinary DJGPP variable, a call to _my_ds() will
get you the selector, and the offset is just the address itself.
However, AFAIK, almost no low-level programming requires to know the
selector of a pointer, so please explain more about what are you
trying to accomplish, because you might go in the wrong direction.

- Raw text -


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