]> 4ch.mooo.com Git - 16.git/commitdiff
those programs are messy! wwww
authorsparky4 <sparky4@cock.li>
Fri, 31 Jul 2015 22:02:20 +0000 (17:02 -0500)
committersparky4 <sparky4@cock.li>
Fri, 31 Jul 2015 22:02:20 +0000 (17:02 -0500)
modified:   16.exe
new file:   DEBUG.16
new file:   MMDUMP.16
new file:   PROFILE.16
modified:   exmmtest.exe
modified:   inputest.exe
modified:   scroll.exe
modified:   sountest.exe
modified:   src/lib/16_head.c
modified:   src/lib/16_mm.c
modified:   src/lib/16_mm.h

16.exe
DEBUG.16 [new file with mode: 0644]
MMDUMP.16 [new file with mode: 0644]
PROFILE.16 [new file with mode: 0644]
exmmtest.exe
inputest.exe
scroll.exe
sountest.exe
src/lib/16_head.c
src/lib/16_mm.c
src/lib/16_mm.h

diff --git a/16.exe b/16.exe
index a2867bbbb527cab3ea0e6db208922870c475e1eb..85e6fc4ae5fc0fa882794d4e1b0875641794c6e9 100644 (file)
Binary files a/16.exe and b/16.exe differ
diff --git a/DEBUG.16 b/DEBUG.16
new file mode 100644 (file)
index 0000000..8ad8653
--- /dev/null
+++ b/DEBUG.16
@@ -0,0 +1,6 @@
+Seg:0  Size:5212       Owner:0x76ff\r
+Seg:145c       Size:256        Owner:0x6552\r
+Seg:155c       Size:273        Owner:0x92aa\r
+Seg:1af9       Size:17 Owner:0x6532\r
+Seg:1cfa       Size:49926      Owner:0x0\r
+Seg:e000       Size:4294909951 Owner:0x5bba\r
diff --git a/MMDUMP.16 b/MMDUMP.16
new file mode 100644 (file)
index 0000000..5715b37
Binary files /dev/null and b/MMDUMP.16 differ
diff --git a/PROFILE.16 b/PROFILE.16
new file mode 100644 (file)
index 0000000..e69de29
index 15e09da657a7f30e1bff0a0ce4eec06997531426..9147e6451cfd0ef725bd0944e310567212c6c2fa 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index f899a6748002b9c2c02b103d6b376977fd56f55e..c80839602041cbebf3ed6bc62a68962dabf1a78f 100644 (file)
Binary files a/inputest.exe and b/inputest.exe differ
index b3d74af3edbce97928d0a61db045dde657ee1080..9d132349001cea6551dda5f2deb63eda27ce99f1 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ
index dcd680a907af688e5a112cc57207a9bf46cb42a5..db2fbe052dbc600e648524c5faa8bd1e4df79b3a 100644 (file)
Binary files a/sountest.exe and b/sountest.exe differ
index a7be849fbf429d56cd59595b6b0f7f83a7e7cfda..95a9e688d4b1ac200b83f8dcef928299d87c9788 100644 (file)
@@ -477,6 +477,9 @@ print_normal_entry(kittengets(2,1,"Far"), (dword)fh_total, (dword)fh_used, (dwor
 printf(      "----------------  --------   --------   --------\n");
 printf("coreleft = %lu\n", (dword)_coreleft());
 printf("farcoreleft = %lu\n", (dword)_farcoreleft());
+printf("GetFreeSize = %lu\n", (dword)GetFreeSize());
+printf("GetNearFreeSize = %lu\n", (dword)GetNearFreeSize());
+printf("GetFarFreeSize = %lu\n", (dword)GetFarFreeSize());
 printf("memavl = %lu\n", (dword)_memavl());
 printf("stackavail = %u\n", stackavail());
 }
index 52b44bbb50b9895f6db1da7b2ee62284d096a5f1..701db3e89c3922bdf1c8f789da182afe4caac8c8 100644 (file)
@@ -674,7 +674,7 @@ void MM_Startup(mminfo_t *mm, mminfotype *mmi)
 //---- length=coreleft();
        printf("                nearheap making!\n");
        _nheapgrow();
-       length=(dword)_coreleft();//(dword)_memmax();//(dword)GetFreeSize();
+       length=(dword)_memavl();//(dword)GetFreeSize();
        start = (void huge *)(mm->nearheap = _nmalloc(length));
        length -= 16-(FP_OFF(start)&15);
        length -= SAVENEARHEAP;
@@ -692,7 +692,7 @@ void MM_Startup(mminfo_t *mm, mminfotype *mmi)
 //---- length=farcoreleft();
        printf("                farheap making!\n");
        _fheapgrow();
-       length=(dword)_farcoreleft();//(dword)GetFarFreeSize();//0xffffUL*4UL;
+       length=(dword)GetFarFreeSize();//0xffffUL*4UL;
        //start = mm->farheap = halloc(length, 1);
        start = mm->farheap = _fmalloc(length);
        length -= 16-(FP_OFF(start)&15);
index a17482fc374f3cacc27f29e2e5c3ce9c87ba2831..3b98e0aefed65eb03a06a8c877f1a3e2799a09b5 100644 (file)
@@ -30,7 +30,7 @@
 //++++mh       #include "src/lib/16_in.h"
 
 #ifdef __DEBUG__               // 1 == Debug/Dev  ;  0 == Production/final
-#define OUT_OF_MEM_MSG "MM_GetPtr: Out of memory!\nYou were short :%lu bytes"
+#define OUT_OF_MEM_MSG "MM_GetPtr: Out of memory!\nYou were short :%lu bytes\n"
 #else
 #define OUT_OF_MEM_MSG "\npee\n"
 #endif