From: sparky4 Date: Wed, 12 Aug 2015 17:13:54 +0000 (-0500) Subject: ok they behave strangly!! wwww X-Git-Url: http://4ch.mooo.com/gitweb/?p=16.git;a=commitdiff_plain;h=c871fdd1dbaab98271d313c67d38c3bb4ea79057 ok they behave strangly!! wwww 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 --- diff --git a/16_HC.BCO b/16_HC.BCO index c7ccb3c2..cbdf386c 100755 Binary files a/16_HC.BCO and b/16_HC.BCO differ diff --git a/16_MM.BCO b/16_MM.BCO index 1177a7b5..8530296d 100755 Binary files a/16_MM.BCO and b/16_MM.BCO differ diff --git a/HEAP.16 b/HEAP.16 index 0df6447a..67c6f110 100755 --- a/HEAP.16 +++ b/HEAP.16 @@ -10,24 +10,24 @@ OK - end of heap == near == - USED block at 0 of size 0 - USED block at 0 of size 0 - USED block at 0 of size 0 - USED block at 0 of size 0 - USED block at 0 of size 0 - USED block at 0 of size 0 - USED block at 0 of size 0 - USED block at 0 of size 0 - USED block at 0 of size 0 + USED block at c2785b6 of size 12 + USED block at c2785c2 of size 294 + USED block at c2786e8 of size 42 + USED block at c278712 of size 20 + USED block at c278726 of size 20 + USED block at c27873a of size 20 + USED block at c27874e of size 20 + USED block at c278762 of size 20 + USED block at c278776 of size 30854 OK - end of heap == far == - USED block at 0 of size 0 - USED block at 0 of size 0 - USED block at 0 of size 0 - USED block at 0 of size 0 - USED block at 0 of size 0 + USED block at 1c280016 of size 66 + USED block at 1c280058 of size 18 + USED block at 1c28006a of size 136 + USED block at 1c2800f2 of size 20 + USED block at 1c280106 of size 7926 OK - end of heap Memory Type Total Used Free diff --git a/MMDUMP.16 b/MMDUMP.16 index 9da54285..53e19093 100755 Binary files a/MMDUMP.16 and b/MMDUMP.16 differ diff --git a/bcexmm.exe b/bcexmm.exe index 1ee2c4e2..5cf46903 100755 Binary files a/bcexmm.exe and b/bcexmm.exe differ diff --git a/bcexmm.prj b/bcexmm.prj index bc9b3319..687a99f9 100755 Binary files a/bcexmm.prj and b/bcexmm.prj differ diff --git a/exmmtest.exe b/exmmtest.exe index 8f299240..f7c3cdd2 100755 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/src/lib/16_hc.c b/src/lib/16_hc.c index afe6e310..20a0aac8 100755 --- a/src/lib/16_hc.c +++ b/src/lib/16_hc.c @@ -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 );*/ diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index eb2cb5d4..20785b91 100755 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -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);