Date: Fri, 5 Apr 1996 11:09:06 +0200 (IST) From: Eli Zaretskii To: Keith Alan Kile Cc: djgpp AT delorie DOT com Subject: Re: Graphics Mode Switching In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 4 Apr 1996, Keith Alan Kile wrote: > What is the recommended way to change video modes using djgpp > v2.x? I have tried using the BIOS video interupt 0x10 through the > library function _go32_dpmi_simulate_int (...) and the compiled program > would hang or cause a general protection exception in a DOS-box under > Win95. Is this the only method currently available under djgpp to switch Did you remember to zero-out the unused fields of the registers' structure you pass to _go32_dpmi_simulate_int()? The fields you should zero out are SS, SP and FLAGS. Better still, use __dpmi_int library function which does this for you.