delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/12/02/15:35:33

Date: Fri, 2 Dec 1994 13:27:35 +0100
From: terra AT diku DOT dk
To: iclone!mat AT sloth DOT swcp DOT com
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: DOS memory allocation

   From: iclone!mat AT sloth DOT swcp DOT com (Mat Hostetter)

   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,

Since it is the real-mode stack you should expect it to be word-aligned,
but not necessarily dword-aligned.  Having a non-word-aligned stack
is not an error (unless it is close to 1), so I am not sure it should
be checked for.

A better (IMHO) solution would be to have a function, say,
_go32_dpmi_simulate_int_no_stack() for the normal use where
you don't supply a stack.

Morten
--
-------------------------------------------------------------------------
For information on the free Republic of Macedonia connect to the WWW link
http://ASUdesign.eas.asu.edu/places/Macedonia/republic/
-------------------------------------------Morten Welinder, terra AT diku DOT dk

- Raw text -


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