public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Instaling Xfont
@ 2005-07-30  9:01 Stas Sergeev
  2005-08-02 20:23 ` Cursor and CVS problems Alain
  0 siblings, 1 reply; 4+ messages in thread
From: Stas Sergeev @ 2005-07-30  9:01 UTC (permalink / raw)
  To: linux-msdos

Hello.

Alain wrote:
> Now the problem is: The cursor is still broken (is at 1/3 from the top)
This was fixed, upgrade from CVS.


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

* Cursor and CVS problems
  2005-07-30  9:01 Instaling Xfont Stas Sergeev
@ 2005-08-02 20:23 ` Alain
  2005-08-04 21:41   ` How to free CPU time? Alain
  0 siblings, 1 reply; 4+ messages in thread
From: Alain @ 2005-08-02 20:23 UTC (permalink / raw)
  To: Dosemu



Stas Sergeev escreveu:
>> Now the problem is: The cursor is still broken (is at 1/3 from the top)
> This was fixed, upgrade from CVS.

I went to sleep very happy, but today I found some problems:

1) The cursor is fine, but completely disapears in Borland C 3.1 in the 
IDE. Thsi happens with any number of lines and with or without "$_X_font 
= "vga""

2) Now when I run NDN dosemu eats 90% of the CPU (any version including 
the very old 2.10 in real mode). If I open 2 or 3 dosemu sessions this 
is shared between them.

Alain

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

* How to free CPU time?
  2005-08-02 20:23 ` Cursor and CVS problems Alain
@ 2005-08-04 21:41   ` Alain
  0 siblings, 0 replies; 4+ messages in thread
From: Alain @ 2005-08-04 21:41 UTC (permalink / raw)
  To: Dosemu

What is the best method to release cpu usage inside dosemu?

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 I can release time in the event loop.

Should I do HLT, call int28 many times? If I do HLT, will it restart 
after "interrupt" events like keyboard, mouse, packet driver, timer 
(54ms), etc?

thanks,
Alain
PS: I still have the problem below, BC31 is important because most of 
FreeDOS itself is made with it...

> 1) The cursor is fine, but completely disapears in Borland C 3.1 in the 
> IDE. This happens with any number of lines and with or without "$_X_font 
> = "vga""

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

* Re: How to free CPU time?
@ 2005-08-05 13:25 Stas Sergeev
  0 siblings, 0 replies; 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-05 13:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-30  9:01 Instaling Xfont Stas Sergeev
2005-08-02 20:23 ` Cursor and CVS problems Alain
2005-08-04 21:41   ` How to free CPU time? Alain
  -- strict thread matches above, loose matches on Subject: below --
2005-08-05 13:25 Stas Sergeev

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