Mail Archives: djgpp/1998/01/08/19:32:03
Mark wrote:
>
> How do I call the interrupt the equivalent of(tasm):
> mov ah, 5h
> int 16h
>
> I have heard that you need to use something like __dpmi_int but I don't
> really know how to do it.
In DJGPP, that assembly would translate to the following C code:
#include <dpmi.h>
/*...*/
__dpmi_regs regs;
regs.h.ah = 0x5;
__dpmi_int( 0x16, ®s );
The __dpmi_* functions are described in the online libc documentation
("info libc alpha __dpmi_int", et. al.).
hth
--
---------------------------------------------------------------------
| John M. Aldrich | "Animals can be driven crazy by pla- |
| aka Fighteer I | cing too many in too small a pen. |
| mailto:fighteer AT cs DOT com | Homo sapiens is the only animal that |
| http://www.cs.com/fighteer | voluntarily does this to himself." |
---------------------------------------------------------------------
- Raw text -