Date: Thu, 7 Oct 1999 19:05:08 +0200 (IST) From: Eli Zaretskii 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.