TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Carsten Wimmer
from: David Noon
date: 1996-11-29 22:51:08
subject: Magic code for DosSleep

On Sunday, 96/11/24, Carsten Wimmer wrote to David Noon about "Magic
code for DosSleep" as follows:

CW> int 2Fh func 1680h worked great under Warp 2.x and 3..  But
CW> under Warp 4 I get 100% cpu-load again, even with int 2Fh..
CW> Any ideas?

Hi Carsten,

I'm still sorting it out under 3.0's VMB support. It'll be another
week or so before I get 4.0 installed. [Have to move NT out of the
way.]

At present, my main concern is with VMB sessions. These hammer the CPU
even when I have an ISR installed to issue the HLT.

Since I received no reply from this echo, I ended up wading through
object code using DEBUG in a VDM. The magic code hasn't changed, but
the register convention has. The AX register _must_ contain zero under
Warp. It is no longer the number of milliseconds for DosSleep() to
suspend the VDM.

However, it still doesn't work in a VMB session. [Mutter, mutter]
[Note that that is "mutter" in English, not a reference to my mother
in German. ... :-) ]

Regards

Dave


 * KWQ/2 1.2i * It works fine except when I am in Windows.
--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 440/4 141/209 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.