summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1998-06-30 22:23:06 +0000
committerimp <imp@FreeBSD.org>1998-06-30 22:23:06 +0000
commit538469e97de891fb4bcec6951f8e01defc1e0aaa (patch)
treed4c516adb979962b2e940372637a8bc5035a99e3 /usr.bin
parent167a14bcd4260afeb7ee50cb39ec42780cc7116d (diff)
downloadFreeBSD-src-538469e97de891fb4bcec6951f8e01defc1e0aaa.zip
FreeBSD-src-538469e97de891fb4bcec6951f8e01defc1e0aaa.tar.gz
Implement int 2f ax=1600, which is, according to the Interrupt List,
used to check to see if windows 3.x if running. We always return 0, which means that neither Windows 3.x nor Windows/386 2.x is running. It also means, btw, that XMS version 1 isn't installed, which is true since we don't implement that either.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/doscmd/int2f.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/doscmd/int2f.c b/usr.bin/doscmd/int2f.c
index 450d4d7..e8fecb3 100644
--- a/usr.bin/doscmd/int2f.c
+++ b/usr.bin/doscmd/int2f.c
@@ -29,7 +29,7 @@
*
* BSDI int2f.c,v 2.2 1996/04/08 19:32:53 bostic Exp
*
- * $Id: int2f.c,v 1.4 1996/09/22 15:42:56 miff Exp $
+ * $Id: int2f.c,v 1.1 1997/08/09 01:42:50 dyson Exp $
*/
#include "doscmd.h"
@@ -99,6 +99,10 @@ static int
int2f_windows(regcontext_t *REGS)
{
switch (R_AL) {
+ case 0x00:
+ R_AL = 0x00; /* Neither Win 3.x nor 2.x running */
+ return(0);
+
case 0x80: /* installation check */
tty_pause();
R_AL = 0x00;
OpenPOWER on IntegriCloud