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

To: djgpp AT delorie DOT com
Subject: Re: pmode selectors
Message-ID: <19961217.074132.12471.2.aclemmer@juno.com>
References: <19961216 DOT 052713 DOT 8263 DOT 0 DOT aclemmer AT juno DOT com>
From: aclemmer AT juno DOT com (Aaron m Clemmer)
Date: Tue, 17 Dec 1996 19:43:15 EST

On 16 Dec 1996 17:02:54 GMT "Patrick Smith" <patricks AT travsoft DOT com>
writes:
>The protected mode selector for any buffer in conventional (dos) memory
is
>the global variable, _dos_ds.  In order to use the transfer buffer
(__tb),
>simply use _dos_ds for the selector and the value of (__tb & 0x000FFFFF)
as
>the offset.  Note:  The reason you mask off the upper 12-bits is because
>real-mode dos only uses 20-bit adresses...
	Well, between all these replies I've gotten, I finally understand
what I should be doing, and what I was doing wrong.
	There may be no difference (but I believe there is), but if you
say (__tb & 0x000fffff), and Shawn H says (__tb &0xfffff), wouldn't one
be incorrect?

aaron

- Raw text -


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