]> 4ch.mooo.com Git - 16.git/commitdiff
ENTIRE EMS ALLOCATED IF EMS 4.0!
authorsparky4 <sparky4@cock.li>
Fri, 3 Jul 2015 06:49:07 +0000 (01:49 -0500)
committersparky4 <sparky4@cock.li>
Fri, 3 Jul 2015 06:49:07 +0000 (01:49 -0500)
modified:   exmmtest.exe
modified:   src/lib/16_mm.c

exmmtest.exe
src/lib/16_mm.c

index 5f74fc421fa666b13d655702949c0ca542d091cc..0cda686f4c5bb1aedc5e37aca4207f98d384466e 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 7ca7cea1e731dbc89551b0b7db8dfd811cf9532e..530bc45b2ad9d7f2c982e94b675a993030b4a6b4 100644 (file)
@@ -175,6 +175,14 @@ unsigned MML_SetupEMS(mminfo_t *mm)
                or      bx,bx
                jz      noEMS                                           // no EMS at all to allocate
 //++++EXPAND DONG!!!!
+               cmp     [EMSVer],0x40
+               jb      low
+               cmp     bx,[freeEMSpages]
+               jle     getpages
+               mov     bx,[freeEMSpages]
+               jmp     getpages
+
+low:
                cmp     bx,4
                jle     getpages                                        // there is only 1,2,3,or 4 pages
                mov     bx,4                                            // we can't use more than 4 pages