Leonard Erickson wrote in a message to All:
LE> I've got a DOS program that I need to run that hogs the CPU.
LE> Setting idle sensitivity to 1 improves things greatly.
LE> But I've got the source, and I'd like to make it more
LE> multi-tassking friendly. It looks like it's in a polling loop
LE> when it's hogging the CPU (basicly it's waiting for me to hit a
LE> key).
LE> I seem to recall that there's a DOS INT I can call that'll free
LE> up the rest of the timeslice. IE. change the code like this:
LE> Old:
LE> Repeat
LE> ...
LE> X := keypressed;
LE> ...
LE> until keypressed or ....
LE> New:
LE> Repeat
LE> ...
LE> X := keypressed;
LE> ...
LE> INT XX;
LE> until keypressed or ....
LE> But I don't recall what the Int is.
For some reason 28 comes to mind, though I'm not sure about that. Do you
have a copy of Ralf Brown's interrupt list? I'm *sure* it's in there
someplace, but I don't program so I don't have anything set up here to search
it. I do have the files if you want 'em, though...
---
278/111
2433/225
* Origin: TANSTAAFL BBS 717-838-8539 (1:270/615)
|