Date: Sun, 18 Aug 1996 15:43:53 +0200 (IST) From: Eli Zaretskii To: RKS1789 AT ritvax DOT isc DOT rit DOT edu Cc: djgpp AT delorie DOT com Subject: Re: help with far pointers to memory please. In-Reply-To: <01I8E4G9E1B89S3TJT@ritvax.isc.rit.edu> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sat, 17 Aug 1996 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 when I try to do something like: char far > *vid_mem=(char *)MK_FP( 0xA000, 0); Please download the file v2/faq201b.zip from the same place you get DJGPP and read the DJGPP FAQ list there. It answers this question in section 17.7. Be ready for a bit of untrivial code re-writing, because accessing memory-mapped hardware is done differently in DJGPP.