Date: Thu, 3 Mar 94 01:30:58 EST From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock) To: mmoss AT panix DOT com Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Proper way to interrupt??? Reply-To: babcock AT cfa DOT harvard DOT edu > The old way: set AX,BX,CX, etc... > INT 10h (or whatever...) > The DJGPP way: ????? #include #include _go32_dpmi_registers go32_regs; memset(&go32_regs, 0, sizeof(go32_regs)); go32_regs.x.ax=...; _go32_dpmi_simulate_int(0x10, &go32_regs); It is important to either zero out the registers or else set up a valid stack to be used in real mode. If you forget, a few random bytes in DOS get corrupted; makes for fun debugging. If the interrupt you are executing needs to access memory, you need to allocate DOS memory and copy data to/from that memory using dosmemget and dosmemput.