#include<stdio.h>
#include<dos.h>
int initmouse();
void showmouseptr();
union REGS i, o;
int main() {
int status;
status = initmouse();
if (status == 0) {
printf("Mouse support not available.n");
} else {
showmouseptr();
}
return 0;
}
int initmouse() {
i.x.ax = 0;
int86(0X33, &i, &o);
return (o.x.ax);
}
void showmouseptr() {
i.x.ax = 1;
int86(0X33, &i, &o);
}
#include<dos.h>
int initmouse();
void showmouseptr();
union REGS i, o;
int main() {
int status;
status = initmouse();
if (status == 0) {
printf("Mouse support not available.n");
} else {
showmouseptr();
}
return 0;
}
int initmouse() {
i.x.ax = 0;
int86(0X33, &i, &o);
return (o.x.ax);
}
void showmouseptr() {
i.x.ax = 1;
int86(0X33, &i, &o);
}
No comments:
Post a Comment