Mail Archives: djgpp/1992/08/17/15:04:57
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 -