Mail Archives: djgpp/1996/11/16/16:50:59
Glen Miner wrote:
>
> Hmm, how would this be better than the dosmemput/get functions? (Sorry,
> I'm a new to pmode and this whole selector buisness is confusing)
dosmemput/get uses the dos selector which is set to have a 4gb limit and
a base of 0,
thus no protection and all refrences have to add in the base of the
screen
(ie 0xa0000+x+y*320 for mode 13h).
Using a specialized selector provides protection because it's limit is
64k (the size
of the screen segment) and because the base is set to 0xa0000, you don't
need to add
an offset to your calculated address (ie x+y*320) which saves 2 clocks
on a 386 (my
computer).
Bill
--
Leave others their otherness.
- Raw text -