Below is the really correct function. I misplaced the inversion and omitted the parentheses. Sorry again for my mistakes! To err is human, to forgive divine!

void delay(unsigned milliseconds)       /* 1 - 1985 */
{
        unsigned i;
        for (i = 0; i <= milliseconds * 33; i++)
        {
                while (inp(0x61) & 0x10)    /* refresh bit toggles with each refresh */
                        ;                               /* so we wait 30 µs but the 
first time */
                while (!(inp(0x61) & 0x10))
                        ;
        }
}

Lucho


------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Freedos-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to