I use a program for MS-DOS that reads and writes data to the parallel port and uses the hardware timer for timing. It doesn't work unless I disable USB support in the BIOS. With USB enabled, it looks like the operation of the program is interrupted hundreds of times at regular intervals. The source is available and compiles with DJGPP.
I'm looking for a way to programmatically disable/enable USB interrupts, either in a standalone program that I may write, or directly inside the program I use. I prefer C & DJGPP but everything goes. An already existing utility that does just this would be OK as well.
You may ask why I don't just use the BIOS for this. My old, parallel port equipped PC, has non-working PS/2 ports, so a USB keyboard must be used. If I disable USB from the BIOS, I can't operate the computer at all (I could put the command in 'autoexec.bat' but how uncomfortable is that?), while in this way I could just lose the keyboard when the program has started and I don't need it (well, almost, but I can live with that).
Thank you for reading. Here's the program (mtap):