Mail Archives: djgpp-workers/2002/06/10/02:48:34
delay() calls int 0x15, ah=0x86 - on Win2K this fails (carry set).
My bios reference says this means some other timer is active.
It seems we should handle this case somehow. For example, we can get
55 ms accuracy (roughly) using the bios area tics; we can get greater
than 1ms accuracy watching the msb from the timer register.
In any case, some delay (even if slightly inaccurate) should be better
than no delay at all. If uclock() worked we could use it in a busy
loop; even if it's buggy it's accuracy might be good enough for delay
when the carry set happens. thoughts?
- Raw text -