Mail Archives: djgpp/1997/02/25/06:10:44
On Tue, 25 Feb 1997, Christoph Kukulies wrote:
> How can I supply these parameters from an address (linear) in my
> program and convert it into a seg:offset to be used by the
> realmode program?
You can't, period. Real-mode addresses can only address the first 1MByte
of memory (they are limited to 20 bits), whereas your DJGPP program uses a
4GByte address space (full 32-bit addressing). These two methods cannot
be reconciled.
> Would that work at all or would it be better to
> use some low memory area as the transfer buffer where seg:offset
> is know beforehand.
Either use the DJGPP transfer buffer, or allocate your own buffer in
conventional memory. The DJGPP FAQ list (available as v2/faq210b.zip
from the same place you get DJGPP) has the necessary details in sections
18.2 and 18.4.
- Raw text -