]> 4ch.mooo.com Git - 16.git/commitdiff
ok
authorsparky4 <sparky4@cock.li>
Sun, 19 Jul 2015 23:50:42 +0000 (18:50 -0500)
committersparky4 <sparky4@cock.li>
Sun, 19 Jul 2015 23:50:42 +0000 (18:50 -0500)
modified:   exmmtest.exe
modified:   src/lib/16_mm.c
modified:   src/lib/16_mm.h

exmmtest.exe
src/lib/16_mm.c
src/lib/16_mm.h

index 5b382e72321ef86a33e2697822e593813ec66bf0..cba1ed30c175bfd0e8e851192a161febbe90145d 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 895bc6cf686d784bc93ed54770f8ed8b30df0d11..dd754efdd6fe2369c36c01cd6bad27caff633c24 100644 (file)
@@ -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
index 5ff492c4f8320df2056dfd6fd956474a0b807740..7007528785d1d569eef17d60fe5638253fa5fffb 100644 (file)
@@ -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];