Mail Archives: djgpp/2000/08/10/09:36:11
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 -