There is a DOSIDLE program that I run in VBox (and VMWare Player) in DOS so that the VM doesn't run so hard.
Perhaps if you look at that code, there may be some clues to answer what you need. Link - https://www.vogons.org/viewtopic.php?f=24&t=43384#p438763 On Sun, May 18, 2025 at 10:13 AM Bernd Böckmann via Freedos-devel < freedos-devel@lists.sourceforge.net> wrote: > > > Am 18.05.2025 um 15:59 schrieb E. C. Masloch via Freedos-devel < > freedos-devel@lists.sourceforge.net>: > > > > However, the code you quoted is missing a check whether the returned AL > register is zero. If it is (indicating the call is supported) and you do > run a HLT afterwards regardless, then every call to the idle routine could > idle for twice the time it should. This could worsen response times. > > The current code looks like this: > > if (!no_multiplex_int) { > r.w.ax = 0x1680; > intr(0x2f, &r); > no_multiplex_int = r.h.al; > } > else { > cpu_hlt(); > } > > So this now falls back to HLT only if a previous INT2F call failed, like > Jerome does in his code. > > Bernd > > > > > _______________________________________________ > Freedos-devel mailing list > Freedos-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-devel >
_______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel