Mail Archives: djgpp/1996/11/17/03:37:47
On 15 Nov 1996, Glen Miner wrote:
> What's the difference between __dpmi_int() and int86()?
>
> I have read the docs under the libc.a reference but I think I need a
> translation.
Any attempt to understand how library functions *really* work requires
that you look into the library sources, IMHO.
The most significant difference is that `int86' invokes the
protected-mode INT instruction, which is caught by the DPMI server and
reflected to real mode, while `__dpmi_int' calls the interrupt-reflection
DPMI service directly.
I suggest you use `__dpmi_int' unless compatibility to other compilers is
an issue, because `int86' has some subtle aspects which have to do with
the 16/32 bit issue of the registers that you pass.
- Raw text -