Below is the correct function. I forgot the inversion. Sorry for my
mistake.
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