Date: Sun, 16 Mar 1997 16:01:55 +0300 (IDT) From: Eli Zaretskii 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.