Mail Archives: djgpp/1998/06/16/19:29:06
Hello,
I would like to create a pointer to my VGA cards memory. I know this
starts at 0xA000,0000
in another compiler I would use:
char far *screen= (char far *) MK_FP(0xa000,0);
problems arise:
1. djgpp does not support the "far" keyword
2. the implementation of "dos.h" that comes with djgpp does not contain
MK_FP()
if I try this:
char * screen = (char *) 0xa0000000;
it compiles fine, then crashes at the point I try and set anything through
this pointer.
Any suggestions?
Thanks.
Owen Butler
- Raw text -