* 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[parent not found: <42F3BD02.7080501@pobox.com>]
[parent not found: <42F3CE28.60107@aknet.ru>]
* reinstalling [not found] ` <42F3CE28.60107@aknet.ru> @ 2005-08-06 0:03 ` Alain 2005-08-06 1:38 ` More info on Cursor problem Alain 0 siblings, 1 reply; 4+ messages in thread From: Alain @ 2005-08-06 0:03 UTC (permalink / raw) To: Dosemu Hi Stas, >> what I did: I had an rpm version 1.3.1, updated to an rpm 1.3.2, updated >> to cvs with "make; makeinstall" > > I have no idea where you got an 1.3.2 Zoltan Boszormenyi released a rpm for FC3 in 22-may-2005 > rpm (perhaps an unofficial one), and > yet less I understand how it is possible > to update an rpm version to cvs with > "make install" etc. The other way around. "make install" afer compiling the CVS version ;-) How should I do to 100% uninstall? > > Hmm, "rpm -e dosemu"? "make install" > above the other "make install" should > work too. Done, it made no difference. (it took some time because I lost all FreeDOS binaries) I believe that this was caused by the latest "cursr at 1/3 heigh" fix. I wouls like to have a look at the code, it would be easyer to test it here it it works fine in your BC31. Can you help me find my way to the diff that made it? I am not familiar enough with cvs to find it :( thanks, Alain ^ permalink raw reply [flat|nested] 4+ messages in thread
* More info on Cursor problem 2005-08-06 0:03 ` reinstalling Alain @ 2005-08-06 1:38 ` Alain 2005-08-09 2:11 ` Cursor problem: Debugging Alain 0 siblings, 1 reply; 4+ messages in thread From: Alain @ 2005-08-06 1:38 UTC (permalink / raw) To: Dosemu I just found how to get my cursor back, I believe this can help to figure out the problem: if I use comand line option "-v 3" cursor disapears inside BC. (but I can get 43 lines) If I use nothing or "-v 18" cursor is ok, BUT the IDE switches to 50 lines (was set to 43 just before) This would be just fine, exept the I need 43 lines to fit my screen. I found very few CP850 fonts, I am using one that is 8x14 and this is too big. If I could find one of 8x12 or 8x13, but I could't fint it. thanks, Alain ^ permalink raw reply [flat|nested] 4+ messages in thread
* Cursor problem: Debugging 2005-08-06 1:38 ` More info on Cursor problem Alain @ 2005-08-09 2:11 ` Alain 0 siblings, 0 replies; 4+ messages in thread From: Alain @ 2005-08-09 2:11 UTC (permalink / raw) To: Dosemu Hi Stas, I just started some debuging of dosemu's internals. Here is what I found: In CVS, src/base/bios/int10.c, function: boolean set_video_mode(int mode) line 636 (2 before the end) there is a: set_text_scanlines(400); Why is it there? (it is not there in the stable release) If I remove thet line, I fix this problem I reported: ----- If I use nothing or "-v 18" cursor is ok, BUT the IDE switches to 50 lines (was set to 43 just before) ----- This is one way to fix the cursor problem... Please tell me if I may be breaking something. thanks, Alain ^ 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