| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | DOS OS/2 Advice ?? |
Hello LEE
LA> This is a DOS app, because it's the closest thing there is right
LA> now to a portable exe format....it'll run under any OS, while
LA> still taking advantage of specific OS features. Now if I could
LA> just get the *best* multitasker to treat it as an *intelligent*
LA> exe, I'll be happy.
LA> Got any ideas ? What I want is that secret Int call that OS/2
LA> will treat as an instruction to take the rest of the slice
LA> away...but don't put me so far to sleep that I can't wake up
LA> again without keyboard intercession.
This is what I use:
void release_time_slice(void)
/* ah = 0 if supported, 80h if not supported */
{
static short int unsupported = 0;
if (!unsupported) {
union REGS reg;
reg.x.ax = 0x1680;
int86(0x2F, ®, ®);
unsupported = reg.h.al;
}
}
Alan
--- FleetStreet 1.14 NR
* Origin: Alan's Point on Donor/2 (alanc{at}donor2.demon.co.uk) (2:440/4.6)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™.