void cursor_on( void ) { asm{ mov ax,01h // function call for mouse cursor on // int 33h } } void get_sysmouse(unsigned int *mptr) { unsigned int posx,posy; unsigned int button; asm{ mov ax, 03h int 33h mov button, bx mov posx, cx mov posy, dx } *mptr=button; *(mptr+1)=posx; *(mptr+2)=posy; }