source: abuse/tags/pd/macabuse/imlib/port/dos4gw/mtest.c @ 49

Last change on this file since 49 was 49, checked in by Sam Hocevar, 11 years ago
  • Imported original public domain release, for future reference.
  • Property svn:keywords set to Id
File size: 284 bytes
Line 
1#include "i86.h"
2
3main()
4{
5  union  REGS in,out;
6  memset(&in,0,sizeof(in));
7  in.w.ax=0;
8  int386(0x33,&in,&out);
9
10  printf("Has a mouse = %d\n",((unsigned short)out.w.ax)==0xffff);
11
12  memset(&in,0,sizeof(in));
13  in.w.ax=4;
14  in.w.cx=40;
15  in.w.dx=40;
16   
17  int386(0x33,&in,&out);
18}
Note: See TracBrowser for help on using the repository browser.