#include<dos.h>
#include<stdio.h>
#include<conio.h>
union REGS i,o;
void main()
{
clrscr();
i.x.ax=1;
int86(0x33,&i,&o);
printf("u can see your mouse cursor on output screen");
getch();
}
..................................................................................................................................
This code is related to mouse programming.......In which ax is register which is declare as 1 for see the mouse cursor on output screen......0x33 is code of mouse port.REGS(registers) which delare as union .also include i,o for input,output.....
0 comments:
Post a Comment