qc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
int86
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The int86 function executes the 8086-processor-family interrupt
     specified by the interrupt number <intnum>. Before executing the
     interrupt, int86 copies the contents of <inregs> to the
     corresponding registers. After the interrupt returns, the function
     copies the current register values to <outregs>. It also copies
     the status of the system carry flag to the cflag field in
     <outregs>.
 
     The <inregs> and <outregs> arguments are unions of type REGS. The
     union type is defined in the include file DOS.H.
 
     Do not use the int86 function to call interrupts that modify the
     DS register. Instead use the int86x function. The int86x function
     loads the DS and ES registers from the <segregs> parameter and
     also stores the DS and ES registers into <segregs> after the
     function call.
 
     The REGS type is defined in the include file DOS.H.
 
     Return Value
 
     The return value is the value in the AX register after the
     interrupt returns. If the cflag field in <outregs> is nonzero, an
     error has occurred. In such cases, the _doserrno variable is also
     set to the corresponding error code.
                                    -♦-