www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/16/22:04:33

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: <Pine DOT SOL DOT 3 DOT 95 DOT 980617000723 DOT 17603A-100000 AT tiger DOT vut DOT edu DOT au>
NNTP-Posting-Host: kou92.pp.dlc.fi
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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?
>

- Raw text -


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