intr()                   Alternate 8086 Software Interrupt Interface
 
 #include   <dos.h>
 
 void            intr(intr_num,preg);
 int             intr_num;               Interrupt number
 struct REGPACK  preg;                   Pointer to structure
 
    intr() generates an 8086 software interrupt specified by 'intr_num'.
    The register values from 'preg' are copied into the registers before
    the software interrupt is executed.  After the software interrupt
    completes, intr() copies the current register values into 'preg'.
    The flags are preserved.  The arguments passed to intr() are:
 
          intr_num  the interrupt number to be executed
          preg      the address of a structure containing
                         the input registers before the call, and
                         the value of the registers after the
                         interrupt call.
 
    The 'REGPACK' structure has the following form:
 
          struct REGPACK  {
               unsigned r_ax, r_bx, r_cx, r_dx;
               unsigned r_bp, r_si, r_di, r_es, r_flags;
          };
 
    Returns:    There is no return value.  'preg' contains the value of
                the registers after the interrupt call.

Seealso:



This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster