It could be, but the global variables used (MouseX and MouseY) are set to that value too.
Code:
int mouseposition(int *x,int *y)
{
int butt;
i.x.ax=0x3;
int86(0x33,&i,&o);
butt=o.x.bx;
*x=o.x.cx;
*y=o.x.dx;
MouseX=*x;
MouseY=*y;
return butt;
}
I don't see why you're doing this.
Code:
mousept=startmouse();
mousept=viewmouse();
The value from the first call is simply overwritten by the second call, and you don't use the variable after that anyway.
Print the values of the parameters that you pass to gotoxy(). Make sure they aren't just both zero.
it is a student project and I have to submit it soon
Why is your teacher using such old code? That is using DOS interrupts etc.