]> 4ch.mooo.com Git - 16.git/commitdiff
ok they behave strangly!! wwww
authorsparky4 <sparky4@cock.li>
Wed, 12 Aug 2015 17:13:54 +0000 (12:13 -0500)
committersparky4 <sparky4@cock.li>
Wed, 12 Aug 2015 17:13:54 +0000 (12:13 -0500)
modified:   16_HC.BCO
modified:   16_MM.BCO
modified:   HEAP.16
modified:   MMDUMP.16
modified:   bcexmm.exe
modified:   bcexmm.prj
modified:   exmmtest.exe
modified:   src/lib/16_hc.c
modified:   src/lib/16_mm.c

16_HC.BCO
16_MM.BCO
HEAP.16
MMDUMP.16
bcexmm.exe
bcexmm.prj
exmmtest.exe
src/lib/16_hc.c
src/lib/16_mm.c

index c7ccb3c24c21f81e4e03a4d1914f32037190bc0e..cbdf386c03abebda1c3cbc41bfb224944fe268e1 100755 (executable)
Binary files a/16_HC.BCO and b/16_HC.BCO differ
index 1177a7b59a158208296a8c1bcb461fe39560117d..8530296de7303c195f91d9d16ce5e42c63f7ac1f 100755 (executable)
Binary files a/16_MM.BCO and b/16_MM.BCO differ
diff --git a/HEAP.16 b/HEAP.16
index 0df6447a1b96cab2f588cbfeaf363dc0cf1333bd..67c6f1103c82e492de2086a21e94d79ae91aaea1 100755 (executable)
--- a/HEAP.16
+++ b/HEAP.16
@@ -10,24 +10,24 @@ OK - end of heap
 \r
        == near ==\r
 \r
-  USED block at 0 of size 0\r
-  USED block at 0 of size 0\r
-  USED block at 0 of size 0\r
-  USED block at 0 of size 0\r
-  USED block at 0 of size 0\r
-  USED block at 0 of size 0\r
-  USED block at 0 of size 0\r
-  USED block at 0 of size 0\r
-  USED block at 0 of size 0\r
+  USED block at c2785b6 of size 12\r
+  USED block at c2785c2 of size 294\r
+  USED block at c2786e8 of size 42\r
+  USED block at c278712 of size 20\r
+  USED block at c278726 of size 20\r
+  USED block at c27873a of size 20\r
+  USED block at c27874e of size 20\r
+  USED block at c278762 of size 20\r
+  USED block at c278776 of size 30854\r
 OK - end of heap\r
 \r
        == far ==\r
 \r
-  USED block at 0 of size 0\r
-  USED block at 0 of size 0\r
-  USED block at 0 of size 0\r
-  USED block at 0 of size 0\r
-  USED block at 0 of size 0\r
+  USED block at 1c280016 of size 66\r
+  USED block at 1c280058 of size 18\r
+  USED block at 1c28006a of size 136\r
+  USED block at 1c2800f2 of size 20\r
+  USED block at 1c280106 of size 7926\r
 OK - end of heap\r
 \r
 Memory Type         Total      Used       Free\r
index 9da542859d4f7ec61fe7fe021e3ed35dee2f3a10..53e19093fe9fb03ca29294fa9046b37ae2b1971d 100755 (executable)
Binary files a/MMDUMP.16 and b/MMDUMP.16 differ
index 1ee2c4e20ac48bb525fe3b01eb9f96fbd042181c..5cf4690380ecf5100c1656c8fcddee183e0b8a09 100755 (executable)
Binary files a/bcexmm.exe and b/bcexmm.exe differ
index bc9b3319e3e1b5e3bdd0d029fb4e33b0a4d343d3..687a99f98d04bdc8078c9e0b64e79cbf2002387f 100755 (executable)
Binary files a/bcexmm.prj and b/bcexmm.prj differ
index 8f299240011a2a409d459f400d7b2c7c47ffc31c..f7c3cdd2699ce383d1028278ed89f4ceade215bf 100755 (executable)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index afe6e3101dfc6a9ec1003aebdb29b2fb0171eb12..20a0aac820b6122ca440bba72b7db2f018488427 100755 (executable)
@@ -420,7 +420,7 @@ void heapdump(global_game_variables_t *gvar)
        for(;;) {
                heap_status = _nheapwalk( &nh_info );
                if( heap_status != _HEAPOK ) break;
-               strcpy(scratch,"  "); strcat(scratch,(h_info._useflag == _USEDENTRY ? "USED" : "FREE")); strcat(scratch," block at "); ultoa((dword)h_info._pentry,str,16); strcat(scratch,str); strcat(scratch," of size "); ultoa(h_info._size,str,10); strcat(scratch,str); strcat(scratch,"\n");
+               strcpy(scratch,"  "); strcat(scratch,(h_info._useflag == _USEDENTRY ? "USED" : "FREE")); strcat(scratch," block at "); ultoa((dword)nh_info._pentry,str,16); strcat(scratch,str); strcat(scratch," of size "); ultoa(nh_info._size,str,10); strcat(scratch,str); strcat(scratch,"\n");
 /*             printf( "  %s block at %Fp of size %4.4X\n",
 (nh_info._useflag == _USEDENTRY ? "USED" : "FREE"),
 nh_info._pentry, nh_info._size );*/
@@ -439,7 +439,7 @@ nh_info._pentry, nh_info._size );*/
        for(;;) {
                heap_status = _fheapwalk( &fh_info );
                if( heap_status != _HEAPOK ) break;
-               strcpy(scratch,"  "); strcat(scratch,(h_info._useflag == _USEDENTRY ? "USED" : "FREE")); strcat(scratch," block at "); ultoa((dword)h_info._pentry,str,16); strcat(scratch,str); strcat(scratch," of size "); ultoa(h_info._size,str,10); strcat(scratch,str); strcat(scratch,"\n");
+               strcpy(scratch,"  "); strcat(scratch,(h_info._useflag == _USEDENTRY ? "USED" : "FREE")); strcat(scratch," block at "); ultoa((dword)fh_info._pentry,str,16); strcat(scratch,str); strcat(scratch," of size "); ultoa(fh_info._size,str,10); strcat(scratch,str); strcat(scratch,"\n");
                /*printf( "  %s block at %Fp of size %4.4X\n",
 (fh_info._useflag == _USEDENTRY ? "USED" : "FREE"),
 fh_info._pentry, fh_info._size );*/
index eb2cb5d44e456c9d990b075aa9582ddee6973b05..20785b91b35f6ac83b047fefc6c24798a729f490 100755 (executable)
@@ -1285,7 +1285,7 @@ void MM_ShowMemory(global_game_variables_t *gvar,/*page_t *page, */mminfo_t *mm)
        //word chx,chy;
        word w;
        //dword wwww;
-       byte    scratch[160],scratch0[4096],str[16];
+       byte    scratch[160],scratch0[4096],scratch1[160],str[16];
        //byte d = '#';
 //**** VW_SetDefaultColors();
 //**** VW_SetLineWidth(40);
@@ -1406,6 +1406,21 @@ void MM_ShowMemory(global_game_variables_t *gvar,/*page_t *page, */mminfo_t *mm)
 
                scan = scan->next;
        }
+       /*strcpy(scratch1, AARESET);
+       strcat(scratch1, "========================================\n");
+       strcat(scratch1, "near=  ");
+       ultoa (*(mm->nearheap),str,10);
+       strcat (scratch1,str);
+       strcat(scratch1, "      far= ");
+       ultoa (*(mm->farheap),str,10);
+       strcat (scratch1,str);
+       strcat(scratch1, "\n");
+       //strcat(scratch1, "&near=      %Fp ", &(mm->nearheap));
+       //strcat(scratch1, "&far=       %Fp", &(mm->farheap));
+       //strcat(scratch1, "\n");
+       strcat(scratch1, "========================================\n");
+       write(gvar->handle.debughandle,scratch1,strlen(scratch1));*/
+
 
        CA_CloseDebug (gvar);