Mail Archives: djgpp/1997/06/24/19:37:38
On 23 Jun 1997 13:27:11 GMT, hbs AT informatik DOT uni-kiel DOT de (Henrik Schmidt)
wrote:
> I think it must be related to the fact that delay() is interrupt
> driven and my code ( which uses jonipx btw ) is faulty at some point.
Yes, delay() is interrupt driven, because it uses int 15h, func 86h.
Kris Heidenstroms PC timing FAQ (pctim003.zip) says about this function:
>>>
If any software locks out interrupts for more than 977 us at a time,
interrupts will be missed and the time period will be extended. The
BIOS joystick reading function (section »» 10.4.2) and the joystick
position reading function given in section »» 10.4.4 may cause this
problem.
I have heard that the Event Wait function is used by the hard disk and
floppy disk BIOS code, but I don't know the details. Info is welcomed.
<<<
AFAIK only one Event Wait function can be active at any time, so if
you're having some sort of signal handlers that use delay(), this could
mess it all up.
Did you try replacement functions for delay(), e.g. one that is using
uclock()?
Last but not least: you don't run Windows, do you?
Regards...
Michael
--
PGP key (0x013CB889) available at public key servers. PGP mail welcome.
PGP fingerprint: 83 D1 C4 76 0A F5 35 C6 C6 C4 C8 73 1B 45 E9 D5
- Raw text -