
houbysoft
By: a guest on
Oct 25th, 2008 | syntax:
C | size: 0.37 KB | hits: 802 | expires: Never
void mouse_wait(unsigned char type)
{
unsigned int _time_out=100000;
if(type==0)
{
while(_time_out--) //Data
{
if((inportb(0x64) & 1)==1)
{
return;
}
}
return;
}
else
{
while(_time_out--) //Signal
{
if((inportb(0x64) & 2)==0)
{
return;
}
}
return;
}
}