From: sparky4 Date: Tue, 11 Aug 2015 17:41:31 +0000 (-0500) Subject: wwww i cannot figure out this!! wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=96ddbb82a64a4cd928ed43b6b9314ba156d79ba0;p=16.git wwww i cannot figure out this!! wwww modified: DEBUG.16 modified: HEAP.16 modified: exmmtest.exe modified: src/exmmtest.c modified: src/lib/16_mm.c --- diff --git a/DEBUG.16 b/DEBUG.16 index eb29f127..4cee7d79 100644 --- a/DEBUG.16 +++ b/DEBUG.16 @@ -1,17 +1,17 @@ -Seg:0 Size:5188 Owner:0x0 +Seg:0 Size:5189 Owner:0x0 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_ 0 -Seg:1444 Size:256 Owner:0x351c +Seg:1445 Size:256 Owner:0x351c +++++_ - -Seg:1544 Size:273 Owner:0x858c +000000000000000000000000000000000000000000000000000000000000000000 +Seg:1545 Size:273 Owner:0x858c ++++_ - -Seg:1bab Size:40 Owner:0x0 +0000000000000000000000000000000000000000000000000000 +Seg:1bac Size:40 Owner:0x0 ++_ -0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -Seg:abd3 Size:13357 Owner:0x0 -++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_  +Seg:abd4 Size:13356 Owner:0x0 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_ +00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Seg:e000 Size:8191 Owner:0x0 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++_ \ No newline at end of file diff --git a/HEAP.16 b/HEAP.16 index 35e303cf..cb189fab 100644 --- a/HEAP.16 +++ b/HEAP.16 @@ -1,11 +1,11 @@ == default == - USED block at 1bcd0016 of size 66 - FREE block at 1bcd0058 of size 18 - USED block at 1bcd006a of size 136 - USED block at 1bcd00f2 of size 20 - FREE block at 1bcd0106 of size 7926 + USED block at 1bce0016 of size 66 + FREE block at 1bce0058 of size 18 + USED block at 1bce006a of size 136 + USED block at 1bce00f2 of size 20 + FREE block at 1bce0106 of size 7926 OK - end of heap == near == diff --git a/exmmtest.exe b/exmmtest.exe index c39d88f7..2bc61da3 100644 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/src/exmmtest.c b/src/exmmtest.c index 0345bc20..479185cf 100644 --- a/src/exmmtest.c +++ b/src/exmmtest.c @@ -130,7 +130,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); diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index 11897608..edbf56e6 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -1346,15 +1346,17 @@ void MM_ShowMemory(global_game_variables_t *gvar,/*page_t *page, */mminfo_t *mm) strcat(scratch0, AARESET); strcat(scratch0, "\n"); strcat(scratch0,AAGREEN); - for(w=(end+1)/80;w<=(wwww/80);w++) + for(w=(wwww)/80;w<=((end+1)/80);w++) + //for(w=(end+1)/80;w<=((wwww)/80);w++) { //printf("0 %x %u %lu\n", scan->next->start, w, scan->length); strcat(scratch0,"0"); } printf("==================\n"); - printf("w=%x start=%x next=%x end=%u %lu\n", w, scan->start, (scan->next->start), end+1, wwww); + printf("w=%u wwww=%lu start=%04x next=%04x end=%lu\n", w/80, wwww/80, scan->start, (scan->next->start), end+1); printf("==================\n"); strcat(scratch0, "\n"); + //getch(); }/*else {//if(scan->next->start <= scan->start){ scan->next->start=scan->start+0x1000; wwww=(dword)(scan->next->start)-(dword)scan->start; @@ -1369,7 +1371,7 @@ void MM_ShowMemory(global_game_variables_t *gvar,/*page_t *page, */mminfo_t *mm) printf("================\n"); printf("w=%x start=%x next=%x end=%u %lu\n", w, scan->start, (scan->next->start), end+1, wwww); printf("================\n"); -// getch(); + getch(); }*/ strcat(scratch0, AARESET); //strcat(scratch0,"\n");