Xref: news2.mv.net comp.os.msdos.djgpp:7581 From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: help with far pointers to memory please. Date: Sun, 18 Aug 1996 01:21:27 -0700 Organization: Three pounds of chaos and a pinch of salt Lines: 28 Message-ID: <3216D287.BA3@cs.com> References: <01I8E4G9E1B89S3TJT AT ritvax DOT isc DOT rit DOT edu> NNTP-Posting-Host: ppp224.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: RKS1789 AT ritvax DOT isc DOT rit DOT edu DJ-Gateway: from newsgroup comp.os.msdos.djgpp RKS1789 AT ritvax DOT isc DOT rit DOT edu wrote: > > Hi, I just downloaded djgpp and am trying to take a program written with borland 4.02 and convert it so it will work with djgpp. The only real problem appears > Because djgpp does not have MK_FP declared, and I don't know enough about what it does to convert it, I am at a loss on how to create a far pointer to video me > ble going into video modes, or anything else...I thank you for a responce > Richard Schelin Please read the DJGPP Frequently Asked Questions List (faq201b.zip), section 10.2, for an answer to this _very_ frequently asked question. :) It describes why you cannot, in protected mode, simply access any ol' memory location without using near or far pointers. (Also note that 'far' pointers under protected mode mean something different than far pointers in 16-bit compilers like Borland.) John -- John M. Aldrich, aka Fighteer I -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS d- s+:- a-->? c++>$ U@>++$ p>+ L>++ E>+ W+>++ N++ o+ K? w(---) O- M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+ tv+() b+++ DI++ D++ G e(*)>++++ h!() !r !y+() ------END GEEK CODE BLOCK------