Also, this may be simpler/faster:

void count(int time)
  {
    int value = 0;
    while (value < time) {
      while (inb(BASEPORT+1) & 0x80)); 
      while (inb(BASEPORT+1) ^ 0x80));
      value++;
    }
  }

- Kal.
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to