Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement