From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Pointer to 0xA000 Date: Mon, 08 Dec 1997 21:55:06 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 24 Message-ID: <348C6CBA.4C83@cs.com> References: <01bd0337$01ac5e00$390760c3 AT benjamir> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp211.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Olmeca wrote: > > I wanna have a pointer to the address 0xA000, but in Djgpp it's a problem. > e.g.: unsigned char *vga=0xA000 (this doesn't work, cause of protected > mode) > in the FAQ's is something about the macro: _dos_ds, but I don't know how to > use it... > Anybody help? Try chapter 10 of the FAQ. This should point you to some items in chapter 18, which show the available methods for accessing conventional memory under protected mode. There are several graphic libraries for DJGPP such as GRX 2.2 and Allegro 2.2 that handle this for you. There is also an excellent beginner's graphics tutorial on Brennan's DJGPP2+Games Resources at . hth -- --------------------------------------------------------------------- | John M. Aldrich | "Always listen to experts. They'll | | aka Fighteer I | tell you what can't be done, and why.| | mailto:fighteer AT cs DOT com | Then do it." | | http://www.cs.com/fighteer | - Lazarus Long | ---------------------------------------------------------------------