delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/02/06:29:38

Date: Sun, 2 Mar 1997 13:17:10 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Stephen Liu <stephen_liu AT bigfoot DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Writing directly to vga memory in DJGPP
In-Reply-To: <33164A10.1D88@bigfoot.com>
Message-ID: <Pine.SUN.3.91.970302131526.6609K-100000@is>
MIME-Version: 1.0

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019