Mail Archives: djgpp/1995/01/27/09:48:00
A.Appleyard writes:
>
> Aaron Ucko <UCKO AT VAX1 DOT ROCKHURST DOT EDU> wrote:-
> > ... Under VCPI, it is possible to guarantee that physical memory gets mapped
> > to E0000000--EFFFFFFF, etc. Under DPMI, this is no longer possible, which is
> > a problem to several bits of code, especially those pertaining to graphics.
> > BTW, have any GRX drivers been made supporting direct linear mapping (I know
> > that at least my Cirrus Logic card supports this)? If so, the problem would
> > be somewhat alleviated...
>
> Please! I have an important Gnu C++ program that absolutely depends on knowing
> what addresses the text screen gets mapped to, as well as in a few places
> needing to know what addresses the physical memory (at least the lowest
> megabyte of RAM) gets mapped to.
>
Don't worry, Anthony!
You can poke to your text screen using 'dosmemput (buf, size, 0xB8000);'.
The same routine can be used for accessing other DOS locations.
These routines will still work in V2.
You can use the 'farptr' routines as well.
Pieter Kunst.
- Raw text -