Mail Archives: djgpp-workers/1997/01/09/09:50:41
On Wed, 8 Jan 1997, Bill Currie wrote:
> The dpmi spec states that int 31 preserves ALL unspecified registers AND
> flags.
> This means that the caller (the application) shlould only see the carry
> flag
> change; ALL of the others must be as they were BEFORE the int 31 was
> invoced.
OK. Now I have looked also in the spec and you'r right. But your
originally problem was, that you thought dbgcom.c modifies in some
undefined way the flags. But this is not true, because it returns
the flags, which were returned by the original int 0x31 and if
these are bad, than you would get it also bad when running not
under the debugger.
But if you change the patch (at first clearing the CF bit and then
oring it) I think it's OK.
> Not only that, but for some of the functions, the error code was getting
> lost
> (or the successfull result in ax, maybe both, can't remember)
OK, I think the best would be to resend a patch for dbgcom.c (not against
your last patch).
Robert
- Raw text -