As for FreeCOM, the bug showed up on the PC (P3 650 MHz) trying to use filename completion. The beep started, then the computer freezed, while continuing to beep. I had to press Ctrl-Alt-Del to shut it up.

It's odd that my Celeron/700 doesn't have that problem, so I don't think it's CPU speed...

Sure. Borland's delay() uses timer 0. Why not rely on the referesh toggle bit instead? For example


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)
                        ;
        }
}

Award BIOS uses this principle all the time, and most computers have exactly such a BIOS ;-)

Steffen, what do you think?

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