
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
#include <i86.h>
int int86( int inter_no,
const union REGS *in_regs,
union REGS *out_regs );
Description:
The int86 function causes the computer's central processor (CPU) to be
interrupted with an interrupt whose number is given by inter_no. Before
the interrupt, the CPU registers are loaded from the structure located
by in_regs. Following the interrupt, the structure located by out_regs
is filled with the contents of the CPU registers. These structures may
be located at the same location in memory.
You should consult the technical documentation for the computer that you
are using to determine the expected register contents before and after
the interrupt in question.
Returns:
The function returns the value of the CPU AX register after the
interrupt.
See Also:
bdos, int386, int386x, int86x, intdos, intdosx, intr, segread
Example:
/*
* This example clears the screen on DOS
*/
#include <i86.h>
void main()
{
union REGS regs;
regs.w.cx = 0;
regs.w.dx = 0x1850;
regs.h.bh = 7;
regs.w.ax = 0x0600;
#ifdef __386__
int386( 0x10, ®s, ®s );
#else
int86( 0x10, ®s, ®s );
#endif
}
Classification:
Intel
Systems:
DOS/16, Win, QNX/16, DOS/PM
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson