www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/07/15:31:02

Date: Thu, 7 Oct 1999 19:05:08 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: kalum AT myflat DOT com
cc: djgpp AT delorie DOT com
Subject: RE: deriving the interrupt vector
In-Reply-To: <199910072342.RAA11101@lakdiva.slt.lk>
Message-ID: <Pine.SUN.3.91.991007190148.24155J-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 7 Oct 1999 kalum AT myflat DOT com wrote:

> In int86x you can also pass the segment registers(ES,DS ...etc) 
> through and additional SREGS structure.

Actually, I'd advise against using int86x, because the segment registers 
need to be set up in a way that will totally surprise a typical DOS 
programmer, and more often than not crash your machine.  Use __dpmi_int 
instead (in the case that is discussed in this thread neither int86x nor 
__dpmi_int are not needed).

> The above are the easiest but you might also want to check out the 
> _go32_dpmi_simulate_int  function.

This latter function will simulate an interrupt in real-mode, not in 
protected mode.  For protected mode, either use int86, or emit a literal 
INT nn instruction in inline assembly.

- Raw text -


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