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.
This commit is contained in:
Warner Losh 1998-06-30 22:23:06 +00:00
parent 85082fc3c3
commit 4e47f901f9
1 changed files with 5 additions and 1 deletions

View File

@ -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;