delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/01/23:19:42

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: absolute adress in pm
Date: Tue, 01 Oct 1996 19:06:05 -0700
Organization: Three pounds of chaos and a pinch of salt
Lines: 30
Message-ID: <3251CE0D.1130@cs.com>
References: <52ri3n$jpi AT ci DOT ist DOT utl DOT pt>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp211.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Atilouds wrote:
> 
> Hi, I just started using DJGPP, and I encountered some problems translating
> my BC 3.1 C programs for use with DJGPP. I have some mode 13h functions
> that I'd like to use, but they're in asm, and, I'd also like to know how
> to adress video memory in pmode (the VGA - 0xa000) in asm (in AT&T syntax),
> so that I can use my functions. Hope you gcc gurus out there can help me.
> Thanks in advance.

Download the DJGPP FAQ from the following URL:

ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2/faq201b.zip

Then look in section 10.2 for your answer.

In brief, you have to either use the farpeek/farpoke mechanism or
disable memory protection with __djgpp_nearptr_enable().  Read up on
these before using them, though.

-- 
John M. Aldrich <fighteer AT cs DOT com>                      

* Anything that happens, happens.
* Anything that, in happening, causes something else to happen,
  causes something else to happen.
* Anything that, in happening, causes itself to happen again, happens
  again.
* It doesn't necessarily do it in chronological order, though.
 
                                       --- Douglas Adams

- Raw text -


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