Newsgroups: comp.os.msdos.djgpp From: Butler Owen scm2211 Subject: far pointers using djgpp Content-Type: TEXT/PLAIN; charset=US-ASCII Message-ID: Sender: news AT matilda DOT vut DOT edu DOT au Organization: Victoria University of Technology Mime-Version: 1.0 Date: Tue, 16 Jun 1998 14:12:23 GMT Lines: 28 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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