Date: Sun, 3 Aug 1997 08:04:39 +0000 ( ) From: "Gurunandan R. Bhat" To: Egg brains Cc: djgpp AT delorie DOT com Subject: Re: [Q] Using __DPMI_SET_DESCRIPTOR... In-Reply-To: <19970807230701.TAA21105@ladder02.news.aol.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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. hth.