Date: Sat, 29 Oct 94 17:23:00 -0400 From: dj AT stealth DOT ctron DOT com (DJ Delorie) To: mark AT samson DOT demon DOT co DOT uk Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: accessing real mode regs from gcc To convert generic int86x calls, you must do some extra work. Get the address of the transfer buffer (or allocate a larger one) from _go32_info_block. Copy anything that you need to pass a pointer to into the transfer block, and "fix" the registers so that they point to where that will appear in real mode (seg=linear>>4, ofs=linear&15). Then fill in the rest of the registers and do _go32_dpmi_simulate_int(). Then copy anything back from the transfer buffer (or other memory) that the TSR returned a pointer to.