Mail Archives: djgpp/1996/10/01/23:19:42
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 -