Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

houbysoft

By: a guest on Oct 25th, 2008  |  syntax: C  |  size: 0.37 KB  |  views: 998  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. void mouse_wait(unsigned char type)
  2. {
  3.   unsigned int _time_out=100000;
  4.   if(type==0)
  5.   {
  6.     while(_time_out--) //Data
  7.     {
  8.       if((inportb(0x64) & 1)==1)
  9.       {
  10.         return;
  11.       }
  12.     }
  13.     return;
  14.   }
  15.   else
  16.   {
  17.     while(_time_out--) //Signal
  18.     {
  19.       if((inportb(0x64) & 2)==0)
  20.       {
  21.         return;
  22.       }
  23.     }
  24.     return;
  25.   }
  26. }