Mail Archives: djgpp/1996/04/05/04:26:47
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.
- Raw text -