Date: Sun, 2 Mar 1997 13:17:10 +0200 (IST) From: Eli Zaretskii To: Stephen Liu cc: djgpp AT delorie DOT com Subject: Re: Writing directly to vga memory in DJGPP In-Reply-To: <33164A10.1D88@bigfoot.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 27 Feb 1997, Stephen Liu wrote: > The following program clears the screen in VGA mode (13h) in each > of the 255 colors. My buffer is declared as: > > unsigned char *vidbuffer=(unsigned char *)0xA0000; > > Is this correct? When I run it under Win95, it creates > a memory exception and quits the program. Please download the DJGPP FAQ list (v2/faq210b.zip from the same place you get DJGPP) and read section 10.2 there. The above doesn't work in DJGPP, that FAQ section explains how to do it correctly.