Xref: news2.mv.net comp.os.msdos.djgpp:4032 From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: graphics Date: Sun, 19 May 1996 23:49:26 +0100 Organization: The University of York, UK Lines: 23 Message-ID: NNTP-Posting-Host: tower.york.ac.uk Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <4nnen5$5k1@newsbf02.news.aol.com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On 19 May 1996, Watcom353 wrote: > But I can't get a pixel on the screen. I've tried > unsigned char *scr=0xa000; > with many different amounts of 0s after the a. But I always get a GPF. You can't do that in protected mode: you have to use far pointers or the fat DS trick. Read the FAQ, or Brennan's VGA tutorial (http://www.rt66.com/~brennan/djgpp/how_to_access_vga.html). > (Any suggestions for setting the mode without bios would also be > appreciated) Why on earth would you want to do that? The BIOS is there to make life easier for you: it seems pretty silly not to use it :-) /* * Shawn Hargreaves. Why is 'phonetic' spelt with a ph? * Check out Allegro and FED on http://www.york.ac.uk/~slh100/ */