delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/11/08:34:07

From: Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How to write to far pointer directly
Date: Thu, 11 Dec 1997 14:03:57 +0100
Organization: University of Ghent, Belgium
Lines: 14
Message-ID: <348FE4BD.B5310D9A@rug.ac.be>
References: <Pine DOT A41 DOT 3 DOT 96a DOT 971210185353 DOT 49018B-100000 AT dante15 DOT u DOT washington DOT edu>
NNTP-Posting-Host: eduserv1.rug.ac.be
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

K. Chung wrote:

> Hi,
>         Does anyone how to write to the far pointer address directly
> without using the _farpoke function group or hacking it to near pointer?

There is no standard C expression that can access far memory directly, if
it is that what you mean. You can access far memory using inline assembler,
but that is actually precisely what the _far* function group does, so IMHO
you are better off using those. If you really do not want to use these,
look at the implementation of these functions in the header file (unless
I'm mistaking, they are in farptr.h). I can tell you, your program won't
run faster.

- Raw text -


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