Mail Archives: djgpp/1997/08/09/10:39:25

Date: Sun, 3 Aug 1997 08:04:39 +0000 ( )
From: "Gurunandan R. Bhat" <grbhat AT unigoa DOT ernet DOT in>
To: Egg brains <eggbrains AT aol DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: [Q] Using __DPMI_SET_DESCRIPTOR...
In-Reply-To: <>
Message-Id: <>
Mime-Version: 1.0

On 7 Aug 1997, Egg brains wrote:

> i got this code (not mine)...
> it is supposed to access 64KB of text-mode video memory at `0xB800:0000',
> (courtesy of Bill Currie)
[code from faq snipped]

> i can't fugure out how to set up my own ram editor thingy... like
> how he got  64 and/or B800:0000 out of the numbers he used in his
> selectorData... i tried convertying them to decimal and binary, but still
> can't get it...

the selectorData[] actually simulates a bit pattern corresponding to the 
different fields in the descriptor. check the libc documentation for the 
function __dpmi_set_descriptor(...) for details of this bit pattern and 
the meaning of the various fields. if you still have a problem mail me, 
i'll send you some notes on this.


- Raw text -

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