Mail Archives: djgpp/1997/08/09/10:39:25
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.
- Raw text -