From 538469e97de891fb4bcec6951f8e01defc1e0aaa Mon Sep 17 00:00:00 2001 From: imp Date: Tue, 30 Jun 1998 22:23:06 +0000 Subject: 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. --- usr.bin/doscmd/int2f.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr.bin') 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; -- cgit v1.1