How to free CPU time?
Hello.
Quoted 1 line · Alain
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.
Quoted 1 line
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.
Quoted 1 line
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.
Quoted 1 line
PS: I still have the problem below
Not reproduceable.
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
reinstalling
Hi Stas,
Quoted 4 lines
Quoted 2 lines
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
Quoted 4 lines
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?
Quoted 4 lines
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
More info on Cursor problem
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
Cursor problem: Debugging
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