]> 4ch.mooo.com Git - 16.git/commitdiff
wwww
authorsparky4 <sparky4@cock.li>
Sat, 27 Jun 2015 20:47:33 +0000 (15:47 -0500)
committersparky4 <sparky4@cock.li>
Sat, 27 Jun 2015 20:47:33 +0000 (15:47 -0500)
Signed-off-by: sparky4 <sparky4@cock.li>
exmmtest.exe
src/lib/16_mm.c
src/lib/16_mm.h

index 35db5fc1e1f73f59b14c53927265016361fd196e..04e9e55097c40da4b106e44e8ee753c400aaaace 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index cfbb3d451f0d24cb37fafe8c4381c3e0e2771cee..9dbc0eef1ff3be4e25b975607b86cc36571d4543 100644 (file)
@@ -507,6 +507,7 @@ void MM_Startup (void)
 // get all available near conventional memory segments\r
 //\r
 //---- length=coreleft();\r
+       _nheapgrow();\r
        length=_memavl();\r
        start = (void far *)(nearheap = malloc(length));\r
 \r
@@ -521,7 +522,8 @@ void MM_Startup (void)
 // get all available far conventional memory segments\r
 //\r
 //---- length=farcoreleft();\r
-       length=_memmax();\r
+       _fheapgrow();\r
+       length=_memavl();\r
        start = farheap = _fmalloc(length);\r
        length -= 16-(FP_OFF(start)&15);\r
        length -= SAVEFARHEAP;\r
index f2b41c2cbbdacfef91ee2c9bfbcf18dd1cde26df..fceb1550b97e5a260f916b3211e27999dc32798d 100644 (file)
@@ -79,8 +79,8 @@
 #define        XMS_FREEUMB             0x11
 
 //==========================================================================
-__segment                seg;
-typedef void __based(seg) * memptr;
+//__segment                seg;
+typedef void __based(__self) * memptr; //__based(seg) * memptr;
 
 typedef struct
 {