| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Magic code for DosSleep |
On , Carsten Wimmer wrote to David Noon :
CW> Hiya!
CW>
CW> DN>> I have found that INT 21H, function 1680H works in a VDM session,
CW> DN> Of course, I meant to type INT 2FH.
CW>
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?
CW>
CW> Cheers,
CW> Carsten
I ran across a tidbit in another echo long ago. But here's what I
remember of it:
DOS box timeslice release.
xor dx, dx
mov ax, 0 ; number of milliseconds. 0 releases remaining timeslice.
hlt
db 35 ; following two data bytes tells OS/2 this is a timeslice
db CA ; call. The db 90 is a NOP instruction incase it's ran under
db 90 ; straight DOS to prevent lock-ups.
I've used the above in several programs. It works just fine.
-Steve-
--- ProBoard v2.16b3 [Reg]
* Origin: -= the River Styx =- http://riverstyx.isot.com (1:395/61)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: 395/61 500 100 396/1 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™.