20 lines
316 B
C
20 lines
316 B
C
|
/*
|
||
|
* 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;
|
||
|
#if defined(__386__) && defined(__DOS__)
|
||
|
int386( 0x10, ®s, ®s );
|
||
|
#else
|
||
|
int86( 0x10, ®s, ®s );
|
||
|
#endif
|
||
|
}
|