delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/10/09:36:11

Date: Thu, 10 Aug 2000 16:01:21 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: ClaudioF <mpolve AT tin DOT it>
cc: djgpp AT delorie DOT com
Subject: Re: memset etc.
In-Reply-To: <8mu28b$202$1@nslave1.tin.it>
Message-ID: <Pine.SUN.3.91.1000810155902.1571B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 10 Aug 2000, ClaudioF wrote:

> Sorry I'm newbie. I've a little problem with a code I've ported from Watcom:
> "General Protection Fault at eip=00002e95 etc. etc."
> 
> Here's the code. It writes with memset() to the video memory:
[snip]
> void PutPixel (int x, int y, char color)
>  {
>   unsigned char *ScreenPointer;
> 
>   ScreenPointer = (unsigned char *) 0x0a0000;
>   memset (ScreenPointer+(x + (y*320)), color, 1);              //  Here's
> the problem. I can't resolve it

This is not supposed to work with DJGPP.  See section 10.2 of the DJGPP 
FAQ list for detailed explanation and possible solutions.

- Raw text -


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