Date: Tue, 25 Feb 1997 13:06:25 +0200 (IST) From: Eli Zaretskii To: Christoph Kukulies cc: djgpp AT delorie DOT com Subject: Re: far pointer - passing to realmode In-Reply-To: <199702251036.LAA06425@gil.physik.rwth-aachen.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.