delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/03/05/14:00:09

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Easy question about pseudo registers
Date: Tue, 05 Mar 2002 12:38:21 CST
Organization: Rice University, Houston TX
Lines: 15
Message-ID: <3c85109d.sandmann@clio.rice.edu>
References: <5331cfdd479ed421f470c47fd11207f4 DOT 62691 AT mygate DOT mailgate DOT org>
NNTP-Posting-Host: clio.rice.edu
X-Trace: joe.rice.edu 1015353818 12935 128.42.105.3 (5 Mar 2002 18:43:38 GMT)
X-Complaints-To: abuse AT rice DOT edu
NNTP-Posting-Date: 5 Mar 2002 18:43:38 GMT
X-NewsEditor: ED-1.5.9
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Since the exception happens in real mode, the IP is stored on the real
mode stack.  In addition, there should be an error code there too.  Since
the standard iret won't clear the error code, I'm suprised if the box 
doesn't hang when extra stuff is left on the real mode stack.  To
change the IP to skip the instruction you would need to modify the
IP on the real mode stack - plus clean up the flags and error code.

You may be able to do this messing with the callback regs - or you may
have to write your own wrapper.

The instruction length causing the error is not always going to be 4
bytes - so you would need to disassemble the instruction to know how
far to jump.

Not such an easy question - or answer.

- Raw text -


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