From: Vik Heyndrickx 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: NNTP-Posting-Host: eduserv1.rug.ac.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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.