public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* Re: How to free CPU time?
@ 2005-08-05 13:25 Stas Sergeev
       [not found] ` <42F3BD02.7080501@pobox.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Stas Sergeev @ 2005-08-05 13:25 UTC (permalink / raw)
  To: linux-msdos

Hello.

Alain wrote:
> What is the best method to release cpu usage inside dosemu?
int 28h is known to be the most generic
way of doing this, unrelated to dosemu.
int 2fh/ax=1680h works well too.

> The problem is: I have made a program that runs in a loop checking 
> keyboard, mouse, network, etc.. It cannot call bios read key function 
> and lock there.
But it surely can (and should) call the
bios function to check the available
keystroke: int 16h/ah=1, and it will
release the CPU time too.

> If I do HLT, will it restart 
> after "interrupt"
Yes, but AFAIK dosemu won't release the
CPU cycles on hlt. Its use is not recommended.

> PS: I still have the problem below
Not reproduceable.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-09  2:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-05 13:25 How to free CPU time? Stas Sergeev
     [not found] ` <42F3BD02.7080501@pobox.com>
     [not found]   ` <42F3CE28.60107@aknet.ru>
2005-08-06  0:03     ` reinstalling Alain
2005-08-06  1:38       ` More info on Cursor problem Alain
2005-08-09  2:11         ` Cursor problem: Debugging Alain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox