From: sparky4 Date: Fri, 23 Sep 2016 18:32:26 +0000 (-0500) Subject: added debug variable X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=723a0cf9eb9c1c19f2ddf7490d3f3973918afe4e;p=16.git added debug variable --- diff --git a/DEBUG.16W b/DEBUG.16W index 7e2f4f13..c174d6ff 100755 --- a/DEBUG.16W +++ b/DEBUG.16W @@ -1,12 +1,12 @@ -Seg:0 Size:8567 Owner:0xfc7e +Seg:0 Size:8574 Owner:0x40fe ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++0 -Seg:2177 Size:256 Owner:0x5428 +Seg:217e Size:256 Owner:0x5438 ++++ -Seg:2277 Size:17 Owner:0x9480 -+ -Seg:27eb Size:44 Owner:0x0 +Seg:227e Size:273 Owner:0x9490 +++++ +Seg:27f1 Size:44 Owner:0x0 ++0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -Seg:b817 Size:10217 Owner:0x0 +Seg:b81d Size:10211 Owner:0x0 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Seg:e000 Size:8191 Owner:0x0 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ \ No newline at end of file diff --git a/HEAP.16W b/HEAP.16W index c5de931a..38e4b0b6 100755 --- a/HEAP.16W +++ b/HEAP.16W @@ -1,47 +1,47 @@ == default == - USED block at 280d0016 of size 66 - USED block at 280d0058 of size 66 - FREE block at 280d009a of size 18 - USED block at 280d00ac of size 136 - USED block at 280d0134 of size 20 - FREE block at 280d0148 of size 7860 + USED block at 28130016 of size 66 + USED block at 28130058 of size 66 + FREE block at 2813009a of size 18 + USED block at 281300ac of size 136 + USED block at 28130134 of size 20 + FREE block at 28130148 of size 7860 OK - end of heap == near == - USED block at 180c94b6 of size 12 - USED block at 180c94c2 of size 332 - USED block at 180c960e of size 52 - USED block at 180c9642 of size 20 - USED block at 180c9656 of size 20 - USED block at 180c966a of size 20 - USED block at 180c967e of size 20 - USED block at 180c9692 of size 20 - USED block at 180c96a6 of size 26966 + USED block at 181294c6 of size 12 + USED block at 181294d2 of size 332 + USED block at 1812961e of size 52 + USED block at 18129652 of size 20 + USED block at 18129666 of size 20 + USED block at 1812967a of size 20 + USED block at 1812968e of size 20 + USED block at 181296a2 of size 20 + USED block at 181296b6 of size 26950 OK - end of heap == far == - USED block at 280d0016 of size 66 - USED block at 280d0058 of size 66 - USED block at 280d009a of size 18 - USED block at 280d00ac of size 136 - USED block at 280d0134 of size 20 - USED block at 280d0148 of size 7860 + USED block at 28130016 of size 66 + USED block at 28130058 of size 66 + USED block at 2813009a of size 18 + USED block at 281300ac of size 136 + USED block at 28130134 of size 20 + USED block at 28130148 of size 7860 OK - end of heap Memory Type Total Used Free ---------------- -------- -------- -------- Default 8166 288 7878 -Near 27462 496 26966 +Near 27446 496 26950 Far 8166 288 7878 ---------------- -------- -------- -------- -coreleft = 26964 -farcoreleft = 51072 +coreleft = 26948 +farcoreleft = 51056 GetFreeSize = 24128 -GetNearFreeSize = 26966 +GetNearFreeSize = 26950 GetFarFreeSize = 24128 -memavl = 26964 +memavl = 26948 stackavail = 11268 diff --git a/MMDUMP.16W b/MMDUMP.16W index 023a748e..f71e9027 100755 Binary files a/MMDUMP.16W and b/MMDUMP.16W differ diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index 9eb93c67..7fce3710 100755 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -47,6 +47,7 @@ Open Watcom port by sparky4 */ #include "src/lib/16_mm.h" +#include "src/lib/16_pm.h" #include "src/lib/16_ca.h" #pragma hdrstop @@ -836,6 +837,8 @@ void MM_Startup(global_game_variables_t *gvar) gvar->mmi.mainmem = gvar->mmi.nearheap + gvar->mmi.farheap; + if(pmdebug>0) + { // // detect EMS and allocate up to 64K at page frame // @@ -900,7 +903,7 @@ goto xmsskip;//0000 { MML_SetupXMS(gvar); // allocate as many UMBs as possible } - + } // // allocate the misc buffer //