Mail Archives: djgpp/1995/01/06/20:39:42
> Is it possible (and how?) to access ports and absolute addresses in
> memory (above 1M) with GNAT/DJGPP?
ports can be accessed via inline assembler or via routines in pc.h
Absolute addresses can be addressed under DPMI providers by using
DPMI call 0x0800, and the farptr.h functions. (BTW, this is
supported in the free DPMI and will be the *ONLY* way to access
physical memory locations > 1Mb in V2).
Under non-DPMI providers, add 0xe0000000 to the physical address
and use that as a pointer. Note, this feature disappears in V2.
If you want to write to a single API and don't have DPMI, I can
let you have an early release of the free DPMI to use with V1.12
- Raw text -