From: sparky4 Date: Fri, 3 Jul 2015 06:49:07 +0000 (-0500) Subject: ENTIRE EMS ALLOCATED IF EMS 4.0! X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=5e41464f0863fd7d896d666797fe861f102b26ef;p=16.git ENTIRE EMS ALLOCATED IF EMS 4.0! modified: exmmtest.exe modified: src/lib/16_mm.c --- diff --git a/exmmtest.exe b/exmmtest.exe index 5f74fc42..0cda686f 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 7ca7cea1..530bc45b 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -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