delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/12/02/05:46:41

Date: Thu, 1 Dec 94 22:29 MST
From: iclone!mat AT sloth DOT swcp DOT com (Mat Hostetter)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: DOS memory allocation
References: <Pine DOT SUN DOT 3 DOT 91 DOT 941130231849 DOT 5918A-100000 AT umdsun2 DOT umd DOT umich DOT edu>
<9412011648 DOT AA01694 AT is DOT elta DOT co DOT il>

Eli Zaretskii writes:
 > _go32_dpmi_simulate_int(), on the other hand, will always work.
 > Just remember to zero out the SS, SP and FLAGS fields of the
 > structure you pass to it before the call.

Perhaps _go32_dpmi_simulate_int() should abort if SP is not evenly
divisible by four?  It's not clear that you ever want an SP *not*
evenly divisible by four, and that would help catch some uninitialized
SP bugs.  The overhead for this check is insignificant compared to
everything else that happens.

-Mat

- Raw text -


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