Date: Sun, 17 Nov 1996 10:28:52 +0000 From: Bill Currie Subject: Re: Memory Protection To: Glen Miner Cc: djgpp AT delorie DOT com Reply-to: billc AT blackmagic DOT tait DOT co DOT nz Message-id: <328EE8E4.6E0C@blackmagic.tait.co.nz> Organization: Tait Electronics NZ MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit References: 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.