Mail Archives: djgpp/1999/10/07/15:31:02
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 -