ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/08/17/15:04:57

Date: Mon 17 Aug 92 14:18:46
From: ronis AT ronis DOT chem DOT mcgill DOT ca (David M. Ronis)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Herculese Memory

Hi,

I have some C-code which writes directly to screen memory on a
Hercules card.

Specifically, through a pointer initilized as

	unsigned char *screen = (unsigned char *)0xb8000000L;

The code works under MSC, but fails under GCC.  The error is a
segmentation violation, which I more or less expected; is there a
simple fix?  (As is probably obvious, I'm not really familiar with
programming in protected mode).

Thanks in advance

David Ronis

P.S.  I reacently asked if the -O2 option is supported in GCC under
MSDOS, but go no reply.  Anyone know?





- Raw text -


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