X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fexmmtest.c;h=0c0346f1f36af0a90660efc5aab98ac9b106e3d5;hb=76278b1d3be2ebf4a635cdec253dfe48450075df;hp=7c8cbe0e2d13bd1e7662fa6b2d83ff2108efc715;hpb=221553c7aa69dddd3f2ed960062080c60fcacf58;p=16.git diff --git a/src/exmmtest.c b/src/exmmtest.c old mode 100644 new mode 100755 index 7c8cbe0e..0c0346f1 --- a/src/exmmtest.c +++ b/src/exmmtest.c @@ -39,10 +39,11 @@ #define FILERL //#define FILEREAD +global_game_variables_t gvar; + void main(int argc, char *argv[]) { - global_game_variables_t gvar; mminfo_t mm; mminfotype mmi; #ifdef __WATCOMC__ __segment sega; @@ -119,6 +120,9 @@ main(int argc, char *argv[]) printf("size of big buffer~=%u\n", _bmsize(sega, bigbuffer)); #endif #endif + printf("press any key to continue!\n"); + getch(); + printf("[\n%s\n]\n", bigbuffer); //printf("dark purple = purgable\n"); //printf("medium blue = non purgable\n"); //printf("red = locked\n"); @@ -130,7 +134,7 @@ main(int argc, char *argv[]) //getch(); MM_DumpData(&mm); //++++modexLeave(); - MM_Report(&mm, &mmi); + //++++MM_Report(&mm, &mmi); // printf(" stop!\n"); #ifdef FILERL MM_FreePtr(&bigbuffer, &mm); @@ -145,22 +149,26 @@ main(int argc, char *argv[]) else printf("\npoo!\n"); #endif printf("========================================\n"); - printf("near=%Fp ", mm.nearheap); - printf("far=%Fp \n", mm.farheap); - printf("near=%Fp ", &(mm.nearheap)); - printf("far=%Fp \n", &(mm.farheap)); - printf("bigbuffer= %Fp\n", bigbuffer); - printf("&bigbuffer= %Fp\n", &bigbuffer); - printf("bigbuffer= %04x\n", bigbuffer); - printf("&bigbuffer= %04x\n", &bigbuffer); - //printf("\n\n"); - //printf("Total free: %lu\n", (dword)(GetFreeSize())); - //printf("Total near free: %lu\n", (dword)(GetNearFreeSize())); - //printf("Total far free: %lu\n", (dword)(GetFarFreeSize())); - //getch(); -// printf("\n"); + printf("near= %Fp ", mm.nearheap); + printf("far= %Fp", mm.farheap); + printf("\n"); + printf("&near= %Fp ", &(mm.nearheap)); + printf("&far= %Fp", &(mm.farheap)); + printf("\n"); + printf("bigb= %Fp ", bigbuffer); + //printf("bigbr= %04x", bigbuffer); + //printf("\n"); + printf("&bigb=%Fp ", &bigbuffer); + //printf("&bigb=%04x", &bigbuffer); + printf("\n"); + printf("========================================\n"); #ifdef __WATCOMC__ + printf("Total free: %lu\n", (dword)(GetFreeSize())); + printf("Total near free: %lu\n", (dword)(GetNearFreeSize())); + printf("Total far free: %lu\n", (dword)(GetFarFreeSize())); heapdump(&gvar); + printf("Project 16 emmtest.exe. This is just a test file!\n"); + printf("version %s\n", VERSION); #endif //printf("core left: %lu\n", (dword)_coreleft()); //printf("far core left: %lu\n", (dword)_farcoreleft());