From: sparky4 Date: Thu, 2 Jul 2015 04:33:39 +0000 (-0500) Subject: okies i am done for the day~ X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=baa4807fae81023b67f53be89e100dd651c13ee3;p=16.git okies i am done for the day~ modified: exmmtest.exe modified: src/exmmtest.c modified: src/lib/16_mm.c --- diff --git a/exmmtest.exe b/exmmtest.exe index c6856ad5..1687e8e6 100644 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/src/exmmtest.c b/src/exmmtest.c index 51c20afc..1fee91c3 100644 --- a/src/exmmtest.c +++ b/src/exmmtest.c @@ -34,7 +34,7 @@ main(int argc, char *argv[]) MM_Startup(&mm, &mmi); printf("done!\n"); printf("&main()=%Fp\n", *argv[0]); - MM_GetPtr(&bigbuffer, 65535UL, &mm, &mmi); + MM_GetPtr(&bigbuffer, mmi.farheap, &mm, &mmi); 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 1214f37f..9d398daa 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -1136,7 +1136,7 @@ void MM_Report(mminfo_t *mm, mminfotype *mmi) printf("EMM %x available\n", mm->EMSVer); printf("totalEMSpages=%u\n", mm->totalEMSpages); printf("freeEMSpages=%u\n", mm->freeEMSpages); - printf("EMSpageframe=%Fp\n", mm->EMSpageframe); + printf("EMSpageframe=%x\n", mm->EMSpageframe); } if(MML_CheckForXMS(mm)) printf("XMSaddr=%x\n", *XMSaddr); printf("near=%lu\n", mmi->nearheap);