From: yorka AT dlc DOT fi (aYk) Newsgroups: comp.os.msdos.djgpp Subject: Re: far pointers using djgpp Date: Tue, 16 Jun 1998 16:05:11 GMT Organization: Majik Lines: 32 Message-ID: <3587942c.9910560@news.dlc.fi> References: NNTP-Posting-Host: kou92.pp.dlc.fi Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Read the DJGPP FAQ (faq210b.zip) section 10 about graphics programming. Also consult the DJGPP User's Guide on http://www.delorie.com/djgpp/doc/ug/ - namely the sections "DJGPP Basics" and "Graphics" and also the "Porting 16-bit programs to DJGPP" -article in the "Compiling" -section. - aYk - > >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? >