Mail Archives: djgpp/1998/05/14/04:00:23
> I just ported the first first function of that
> 16 Bit Lib with int86 function in gcc instead of geninterrupt in BC
Don't use int86, use __dpmi_int instead. It has a very similar
interface, but works in a way that's much more reliable. In
particular, the nuisance with _NAIVE_DOS_REGS and _BORLAND_DOS_REGS
(see library reference), which can cause subtle bugs, doesn't exist
with __dpmi_int.
> Does gjgpp switch to realmode with int86 ?
Calling any real-mode interrupt function involves a switch to real
mode, since the BIOS code cannot run in protected mode. But the
switch isn't done by DJGPP, it is the DPMI server that does it.
- Raw text -