www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/17/19:57:25

To: djgpp AT delorie DOT com
Subject: Re: pmode selectors
Message-ID: <19961217.074133.12471.3.aclemmer@juno.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 961217085157 DOT 20273I AT is>
From: aclemmer AT juno DOT com (Aaron m Clemmer)
Date: Tue, 17 Dec 1996 19:43:15 EST

On Tue, 17 Dec 1996 09:09:56 +0200 (IST) Eli Zaretskii
<eliz AT is DOT elta DOT co DOT il> writes:
>Close, but not quite there yet.  `__tb' can be used as both seg:off pair

>and as a protected-mode selector:offset.  If you need the real-mode
style 
>address, you use (__tb >> 4) & 0xffff as the segment and (__tb & 0xf) as

>the offset.  If you need a PM-style address, you use `_dos_ds' (a macro 
>defined on <go32.h>) as the selector and __tb as the offset.
	I appreciate the your reply, I actually understand what's going
on now...

- Raw text -


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