Date: Mon, 16 Dec 1996 19:03:03 +0200 (IST) From: Eli Zaretskii To: Aaron m Clemmer cc: djgpp AT delorie DOT com Subject: Re: pmode selectors In-Reply-To: <19961216.052713.8263.0.aclemmer@juno.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 15 Dec 1996, Aaron m Clemmer wrote: > How do you get the protected mode selector and offset of __tb, or > any buffer in conventional memory? I thought you could just use the > address of __tb as a selector, and leave the offset as 0, but that just > GPFed... The address of __tb is a real-mode seg:off address, that's why it GPFed on you. > I tried looking in the faq, but it wasn't very clear about > anything but getting rmode segs and offs... What's wrong with using seg:off way and call dosmemget/dosmemput and all the other functions discussed in the FAQ? Why do you at all need the selector?