www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/16/12:24:30

Date: Mon, 16 Dec 1996 19:03:03 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Aaron m Clemmer <aclemmer AT juno DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: pmode selectors
In-Reply-To: <19961216.052713.8263.0.aclemmer@juno.com>
Message-ID: <Pine.SUN.3.91.961216190054.18715h-100000@is>
MIME-Version: 1.0

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?

- Raw text -


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