www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/28/17:16:21

From: "Tony O'Bryan" <aho450s AT nic DOT smsu DOT edu>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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).


- Raw text -


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