From: sparky4 Date: Sun, 19 Jul 2015 23:50:42 +0000 (-0500) Subject: ok X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=8243a7d2a157ab520384f5019a63fd29c5c1383c;p=16.git ok modified: exmmtest.exe modified: src/lib/16_mm.c modified: src/lib/16_mm.h --- diff --git a/exmmtest.exe b/exmmtest.exe index 5b382e72..cba1ed30 100644 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index 895bc6cf..dd754efd 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -143,6 +143,7 @@ unsigned MML_SetupEMS(mminfo_t *mm) union REGS CPURegs; unsigned int EMSVer = 0; + byte EMS_status; unsigned totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle; totalEMSpages = freeEMSpages = EMSpageframe = EMSpagesmapped = 0; @@ -151,6 +152,7 @@ unsigned MML_SetupEMS(mminfo_t *mm) mov ah,EMS_STATUS int EMS_INT // make sure EMS hardware is present or ah,ah + mov [EMS_status],ah jnz error mov ah,EMS_VERSION diff --git a/src/lib/16_mm.h b/src/lib/16_mm.h index 5ff492c4..70075287 100644 --- a/src/lib/16_mm.h +++ b/src/lib/16_mm.h @@ -134,6 +134,7 @@ typedef struct boolean mmstarted, bombonerror, mmerror; void huge *farheap; void *nearheap; + byte EMS_status; unsigned totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle; unsigned int EMSVer; word numUMBs,UMBbase[MAXUMBS];