]> 4ch.mooo.com Git - 16.git/commitdiff
wwww i cannot figure out this!! wwww
authorsparky4 <sparky4@cock.li>
Tue, 11 Aug 2015 17:41:31 +0000 (12:41 -0500)
committersparky4 <sparky4@cock.li>
Tue, 11 Aug 2015 17:41:31 +0000 (12:41 -0500)
modified:   DEBUG.16
modified:   HEAP.16
modified:   exmmtest.exe
modified:   src/exmmtest.c
modified:   src/lib/16_mm.c

DEBUG.16
HEAP.16
exmmtest.exe
src/exmmtest.c
src/lib/16_mm.c

index eb29f127549939a648e80d99d654730b1c1d0267..4cee7d790fb6bb0c7a47c4866995c4fd2bd69a2c 100644 (file)
--- a/DEBUG.16
+++ b/DEBUG.16
@@ -1,17 +1,17 @@
-\e[0mSeg:0      Size:5188       Owner:0x0\r
+\e[0mSeg:0      Size:5189       Owner:0x0\r
 \e[41;31m+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m\e[47;37m_\e[0m\r
 \e[42;32m0\r
-\e[0m\e[0mSeg:1444       Size:256        Owner:0x351c\r
+\e[0m\e[0mSeg:1445       Size:256        Owner:0x351c\r
 \e[44;34m+++++\e[0m\e[47;37m_\e[0m\r
-\e[42;32m\r
-\e[0m\e[0mSeg:1544       Size:273        Owner:0x858c\r
+\e[42;32m000000000000000000000000000000000000000000000000000000000000000000\r
+\e[0m\e[0mSeg:1545       Size:273        Owner:0x858c\r
 \e[44;34m++++\e[0m\e[47;37m_\e[0m\r
-\e[42;32m\r
-\e[0m\e[0mSeg:1bab       Size:40 Owner:0x0\r
+\e[42;32m0000000000000000000000000000000000000000000000000000\r
+\e[0m\e[0mSeg:1bac       Size:40 Owner:0x0\r
 \e[41;31m++\e[0m\e[47;37m_\e[0m\r
-\e[42;32m0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\r
-\e[0m\e[0mSeg:abd3       Size:13357      Owner:0x0\r
-\e[41;31m++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m\e[47;37m_\e[0m\r
 \e[42;32m\r
+\e[0m\e[0mSeg:abd4       Size:13356      Owner:0x0\r
+\e[41;31m++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m\e[47;37m_\e[0m\r
+\e[42;32m00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\r
 \e[0m\e[0mSeg:e000       Size:8191       Owner:0x0\r
 \e[41;31m++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m\e[47;37m_\e[0m
\ No newline at end of file
diff --git a/HEAP.16 b/HEAP.16
index 35e303cffde6a81a4a93ba66e84570ea9f9c1cc1..cb189fab21252570c4b85e284fc12a0741c95fd9 100644 (file)
--- a/HEAP.16
+++ b/HEAP.16
@@ -1,11 +1,11 @@
 \r
        == default ==\r
 \r
-  USED block at 1bcd0016 of size 66\r
-  FREE block at 1bcd0058 of size 18\r
-  USED block at 1bcd006a of size 136\r
-  USED block at 1bcd00f2 of size 20\r
-  FREE block at 1bcd0106 of size 7926\r
+  USED block at 1bce0016 of size 66\r
+  FREE block at 1bce0058 of size 18\r
+  USED block at 1bce006a of size 136\r
+  USED block at 1bce00f2 of size 20\r
+  FREE block at 1bce0106 of size 7926\r
 OK - end of heap\r
 \r
        == near ==\r
index c39d88f79323fb837a37be6c525cce5723629b26..2bc61da36be467a1da3d0d0f2890d9be7937a081 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 0345bc20d4b1a0790d6c33ce96205a06e8cb046a..479185cf54ac24748c98a09bae643eabee61d4e9 100644 (file)
@@ -130,7 +130,7 @@ main(int argc, char *argv[])
        //getch();\r
        MM_DumpData(&mm);\r
        //++++modexLeave();\r
-       MM_Report(&mm, &mmi);\r
+       //++++MM_Report(&mm, &mmi);\r
 //     printf("                stop!\n");\r
 #ifdef FILERL\r
        MM_FreePtr(&bigbuffer, &mm);\r
index 11897608930c4cadff5b1644a402d6ad3a43eb5c..edbf56e665b3f8ab6109a962213871bc16da3282 100644 (file)
@@ -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");