From: sparky4 Date: Thu, 2 Jul 2015 04:46:31 +0000 (-0500) Subject: ^^; X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=fc09a4f17e69c1e2a5725e3aef480691c486987c;p=16.git ^^; modified: exmmtest.exe modified: src/exmmtest.c modified: src/lib/16_mm.c --- diff --git a/exmmtest.exe b/exmmtest.exe index 1687e8e6..a5f376a9 100644 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/src/exmmtest.c b/src/exmmtest.c index 1fee91c3..9000974a 100644 --- a/src/exmmtest.c +++ b/src/exmmtest.c @@ -34,7 +34,8 @@ main(int argc, char *argv[]) MM_Startup(&mm, &mmi); printf("done!\n"); printf("&main()=%Fp\n", *argv[0]); - MM_GetPtr(&bigbuffer, mmi.farheap, &mm, &mmi); + MM_GetPtr(&bigbuffer, mmi.nearheap, &mm, &mmi); + //hmm functions in cache system use the buffered stuff printf("size of big buffer~=%ul\n", _msize(bigbuffer)); MM_ShowMemory(&mm); MM_Report(&mm, &mmi); diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index 9d398daa..45411033 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -1033,7 +1033,7 @@ void MM_ShowMemory(mminfo_t *mm) printf("Location:"); printf("%x\t", scan->start); strcpy (scratch,"Size:"); -ltoa ((long)scan->length*16,str,10); +ltoa ((dword)scan->length*16,str,10); strcat (scratch,str); strcat (scratch,"\tOwner:0x"); owner = (unsigned)scan->useptr;