www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/16/19:29:06

Newsgroups: comp.os.msdos.djgpp
From: Butler Owen scm2211 <s9708172 AT tiger DOT vut DOT edu DOT au>
Subject: far pointers using djgpp
Message-ID: <Pine.SOL.3.95.980617000723.17603A-100000@tiger.vut.edu.au>
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

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 -


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