delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/02/11:04:02

From: brunobg AT geocities DOT com (Bruno Barberi Gnecco)
Newsgroups: comp.os.msdos.djgpp
Subject: 'FAR' under DJGPP
Date: Sat, 02 May 1998 14:53:25 GMT
Organization: UNINET (Unisys Brasil Internet Access Service)
Lines: 22
Message-ID: <354a2ab1.4002764@news.unisys.com.br>
NNTP-Posting-Host: saopm01p16.unisys.com.br
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'd like to output a file generated by TheDraw. It's documentation says to use:

#include <stdio.h>
#include <memory.h>
#include "file.h" // this is the file containing data
int main () {
           void far *screen;
           int offset = -162;  t
           int x;
           for (x=0; x<IMAGEDATA_DEPTH; x++) {
	     (long) screen = 0xB8000000+x*160+offset;
	     memcpy (screen,&IMAGEDATA[x*IMAGEDATA_WIDTH*2],IMAGEDATA_WIDTH*2);
           }
}

But DJGPP doesn't accept the FAR keyword. How do I do? 

"There's never enough time to do all the nothing you want" Bill Watterson 
"Is ALL that we see or seem / But a dream within a dream?" - Edgar A. Poe
Bruno Barberi Gnecco <brunobg AT geocities DOT com> ICQ #1383173 - PGP 5.0i user
-=My other OS is Linux=- 3DS4, Max, Rhino, Photoshop and everything about 
computer graphics? It sure is on Graphx Page!!! http://graphx.home.ml.org

- Raw text -


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