| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | DosSleep in an OS/2 VDM? |
-=> Quoting Mikko Hyvarinen to All <=-
MH> Interrupt 21h, register values:
MH> AX = 6400h ; OS/2 function interface
MH> BX = 0032h ; DosSleep API ordinal
MH> CX = 636Ch ; Magic number?
MH> The other register values are missing. Using just these values with
MH> zeros in all other registers results in error code 1. If somebody knows
MH> what that is, please enlighten me.
There are a couple of examples in SNIPPETS (SNIP95??.ZIP) for giving up time
slices in DOS. Here one of them (the other one is too large to post the
whole thing),
/** int drop_time(void)
**
** Drops current timeslice in OS/2, Win, DPMI 1.0 and (I think) DV
**
** Returns: 0 if not successful, 1 if dropped
**
** Based on Ralf Brown's Interrupt list.
** Donated to Public Domain by Thor Johnson.
**
***********************************************************************/
#include
#include "snpdosys.h"
int drop_time(void) /* Drops Time-slice, giving to another program */
{
union REGS regs;
regs.x.ax = 0x1680;
int86(0x2f, ®s, ®s);
return (regs.h.al == 0x80)? 0 : 1;
}
phil.crown{at}bluecafe.com
___ Blue Wave/OS2 v2.22b
--- WILDMAIL!/WC v4.12
* Origin: The Blues Cafe (214) 638-1186 8 Nodes (1:124/8014.0)SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 517 628 713/888 800/1 7877/2809 @PATH: 124/8014 8001 1 396/1 270/101 712/515 711/808 809 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™.