cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/11/11:31:55

Date: Tue, 11 Feb 1997 18:17:27 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Greg D Stewart <way-cool AT juno DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: hmm...
In-Reply-To: <19970211.065651.7967.1.way-cool@juno.com>
Message-ID: <Pine.SUN.3.91.970211181325.5506A-100000@is>
MIME-Version: 1.0

On Tue, 11 Feb 1997, Greg D Stewart wrote:

> I know that far pointers don't work exactly under DJGPP, but can I change
> every (char, that is) far pointer to an unsigned char *pointer.

Yes, provided that the far pointer in the original program wasn't used to 
reference a memory-mapped device (such as the VGA video RAM).  For those, 
you will have to rewrite the code.  Be sure to read relevant sections of 
Chapter 18 from the FAQ.

The easiest way to get rid of the far declarations which do NOT reference 
memory-mapped devices is to give -Dfar= option on the gcc command line; 
this just defines "far" away without requiring that you edit the sources.

> Also on
> the _fmemcpy of other compilers, can I use that movedata function
> instead?

Just memcpy.  But again, this won't work if _fmemcpy was used to move 
data to and from memory-mapped peripherals.

- Raw text -


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