Date: Mon, 25 Aug 1997 12:25:08 +0300 (IDT) From: Eli Zaretskii To: Ying Qin cc: djgpp AT delorie DOT com Subject: Re: How to use real mode structure allocated in protected mode? In-Reply-To: <33FDE2EF.64AC@ece.uci.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Fri, 22 Aug 1997, Ying Qin wrote: > In fact, a real mode structure will be used in a real mode interrupt, I > have allocated the dos memory with a _go32_dpmi_allocate_dos_memory() > call and got a real mode segment base address and a protected mode > selector of allocated block. How can I use it as a structure? Thx. Did you read sections 18.2-18.4 of the DJGPP FAQ list (available as v2/faq210b.zip from the same place yuo get DJGPP)? If so, please ask specific questions based on what the FAQ explains. Basically, you need to move data to and from the DOS buffer you've allocated. The FAQ should explain how in the above sections.