From: sparky4 Date: Mon, 3 Aug 2015 21:40:43 +0000 (-0500) Subject: Signed-off-by: sparky4 X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=fad5fd480cf00e701a6a78a7c7693538ca700fc5;p=16.git Signed-off-by: sparky4 --- diff --git a/16.exe b/16.exe index addb6416..dae2e20e 100644 Binary files a/16.exe and b/16.exe differ diff --git a/DEBUG.16 b/DEBUG.16 new file mode 100644 index 00000000..fd55028c --- /dev/null +++ b/DEBUG.16 @@ -0,0 +1,8 @@ +0 Size:5160 Owner:0x0 +0 Size:5160 Owner:0x0 +1428 Size:256 Owner:0x4cfe +Seg:1528 Size:273 Owner:0x859a +Seg:1baf Size:17 Owner:0x0 +Seg:1baf Size:17 Owner:0x0 +1db0 Size:49744 Owner:0x0 +Seg:e000 Size:4294909951 Owner:0x0 diff --git a/HEAP.16 b/HEAP.16 index abeb11d5..612e248e 100644 --- a/HEAP.16 +++ b/HEAP.16 @@ -1,10 +1,11 @@ == default == - USED block at 1bda0016 of size 88 - USED block at 1bda009e of size 42 - USED block at 1bda00e0 of size 1f1e - FREE block at 1bda1ffe of size 1ffe + USED block at 1bb10016 of size 136 + USED block at 1bb1009e of size 66 + FREE block at 1bb100e0 of size 7966 + USED block at 1bb11ffe of size 20 + FREE block at 1bb12012 of size 8170 OK - end of heap == near == @@ -26,18 +27,19 @@ OK - end of heap 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 OK - end of heap Memory Type Total Used Free ---------------- -------- -------- -------- -Default 16358 8168 8190 -Near 31286 31286 0 -Far 16358 8168 8190 +Default 16358 222 16136 +Near 31286 436 30850 +Far 16358 222 16136 ---------------- -------- -------- -------- -coreleft = 0 -farcoreleft = 7996 -GetFreeSize = 8014 -GetNearFreeSize = 0 -GetFarFreeSize = 8014 -memavl = 0 -stackavail = 17041 +coreleft = 30848 +farcoreleft = 46788 +GetFreeSize = 15960 +GetNearFreeSize = 30850 +GetFarFreeSize = 15960 +memavl = 30848 +stackavail = 17131 diff --git a/MMDUMP.16 b/MMDUMP.16 new file mode 100644 index 00000000..307f53b1 Binary files /dev/null and b/MMDUMP.16 differ diff --git a/bakapi.exe b/bakapi.exe index de36892c..e1c1f69d 100644 Binary files a/bakapi.exe and b/bakapi.exe differ diff --git a/exmmtest.exe b/exmmtest.exe index d0846ef5..805aed16 100644 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/fmemtest.exe b/fmemtest.exe index 11bcf03c..d67d4458 100644 Binary files a/fmemtest.exe and b/fmemtest.exe differ diff --git a/fontgfx.exe b/fontgfx.exe index b25350a2..0b932c07 100644 Binary files a/fontgfx.exe and b/fontgfx.exe differ diff --git a/fonttest.exe b/fonttest.exe index abd57e7c..2d6c1c5b 100644 Binary files a/fonttest.exe and b/fonttest.exe differ diff --git a/inputest.exe b/inputest.exe index 01fa6582..b2f4d6ff 100644 Binary files a/inputest.exe and b/inputest.exe differ diff --git a/makefile b/makefile index faa97ac9..563c6bdd 100644 --- a/makefile +++ b/makefile @@ -22,7 +22,7 @@ WCPULIB=$(SRCLIB)wcpu$(DIRSEP) 16FLAGS=-fh=16.hed BAKAPIFLAGS=-fh=bakapi.hed -SFLAGS=-sg -st -of+ -k32768 -zu -zdp#51200#49152#24576 +SFLAGS=-sg -st -of+ -k32768 -zu## -zdp#51200#49152#24576 DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1 $(SFLAGS) ZFLAGS=-zk0 -zq -zu -zc -zm# -zdp# -zp16 CFLAGS=-mc -lr -l=dos -wo -x## -d2 diff --git a/maptest.exe b/maptest.exe index a1237bb1..6ad04474 100644 Binary files a/maptest.exe and b/maptest.exe differ diff --git a/palettec.exe b/palettec.exe index e4ad17d4..b38c6f72 100644 Binary files a/palettec.exe and b/palettec.exe differ diff --git a/pcxtest.exe b/pcxtest.exe index a8ebf8a9..87b9f8e4 100644 Binary files a/pcxtest.exe and b/pcxtest.exe differ diff --git a/scroll.exe b/scroll.exe index 534f03b3..bd999b9e 100644 Binary files a/scroll.exe and b/scroll.exe differ diff --git a/sega.exe b/sega.exe index 7d1e0dda..9ed4ba36 100644 Binary files a/sega.exe and b/sega.exe differ diff --git a/sountest.exe b/sountest.exe index 8c9ac9b7..f45d964c 100644 Binary files a/sountest.exe and b/sountest.exe differ diff --git a/src/lib/16_hc.c b/src/lib/16_hc.c index a7de12f3..f9f4948c 100644 --- a/src/lib/16_hc.c +++ b/src/lib/16_hc.c @@ -360,8 +360,7 @@ void heapdump(void) for(;;) { heap_status = _heapwalk( &h_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,16); strcat(scratch,str); strcat(scratch,"\n"); + 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"); if((h_info._useflag == _USEDENTRY ? "USED" : "FREE")=="FREE") h_free += h_info._size; if((h_info._useflag == _USEDENTRY ? "USED" : "FREE")=="USED") h_used += h_info._size; h_total += h_info._size; @@ -377,8 +376,7 @@ void heapdump(void) 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,16); strcat(scratch,str); strcat(scratch,"\n"); + 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"); /* printf( " %s block at %Fp of size %4.4X\n", (nh_info._useflag == _USEDENTRY ? "USED" : "FREE"), nh_info._pentry, nh_info._size );*/ @@ -397,8 +395,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,16); strcat(scratch,str); strcat(scratch,"\n"); + 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"); /*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/test.exe b/test.exe index cbb49da8..c2fb85a4 100644 Binary files a/test.exe and b/test.exe differ diff --git a/test2.exe b/test2.exe index bd6ee779..1c8b210f 100644 Binary files a/test2.exe and b/test2.exe differ diff --git a/tsthimem.exe b/tsthimem.exe index ddedc3e4..8a00b50c 100644 Binary files a/tsthimem.exe and b/tsthimem.exe differ