Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - int86x http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   int86x

   Usage
   #include <dos.h>/* register structures */
   int  int86x(int intnum,union REGS *regsin, union REGS  *regsout,struct
   SREGS *segregs);

   Description
   This function performs an 8086 software interrupt where:

   intnum is the interrupt number (0..255).

   regsin  is  a  pointer to a structure containing  the  values  of  the
   registers AX, BX, CX, DX, SI and DI to be passed to the interrupt.

   segregs  is  a  pointer to a structure containing the  values  of  the
   segment  registers to be passed to the interrupt. It is also  used  to
   return  the  values in the segment registers after the  interrupt  has
   completed.

   regsout  is a pointer to a structure into which the return  values  of
   the registers will be written.

   The  REGS  and  SREGS structures are defined in  dos.h.  Consult  your
   system  hardware and software manuals to determine what the  interrupt
   numbers are and what they do on your machine.

   Return Value
   int86x returns the value in the 8086 AX register at the completion  of
   the  interrupt.  The state of the carry flag can  be  determined  from
   x.cflag in regsout. Do not use int86x for interrupts 0x25 or 0x26. Use
   dos_abs_disk_read / write for those.


See Also: int86 intdos bdos

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson