From: "Tony O'Bryan" Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP and VGA pointer? Date: Tue, 26 May 1998 21:20:57 +0000 Organization: Southwest Missouri State Universtiy Lines: 14 Message-ID: <356B3239.5ACA0DA3@nic.smsu.edu> References: <356b3373 DOT 1308862 AT news DOT carlsbad DOT net> NNTP-Posting-Host: sara.a42.smsu.edu 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 Jose Hernandez wrote: > How can make a pointer to A000:0000 be made in DJGPP? The only > example I've seen that does this uses a macro not included with DJGPP, > MK_FP(). MK_FP() is a macro used by some 16-bit compilers to get at absolute memory addresses in Real mode. DJGPP uses a protected mode compiler that does not allow this kind of direct access (normally). However, the DJGPP FAQ contains code to create a local descriptor that will allow you to get direct access to video memory. Download the FAQ and look under section 18.4 (How to move data between your program and conventional memory).