delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/12/14/02:39:29

Date: Tue, 13 Dec 94 23:03:46 EST
From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock)
To: baca AT crl DOT ucsd DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: DPMI convenience funcs
Reply-To: babcock AT cfa DOT harvard DOT edu

> The following crashes:
> ...
> 	iregs.x.ss = iregs.x.sp = 0;
> 	_go32_dpmi_simulate_int(0x10, &iregs);

Just a guess: there was some discussion a while back indicating that the
flags register might also need to be cleared.  For example, the single step
bit might be set leading to a crash.  Another possibility is that the
function you are calling has some undocumented sensitivity to other
registers.  For safety, I just zero the whole structure before filling in the
registers I care about.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019