From: sparky4 Date: Tue, 21 Feb 2017 21:10:11 +0000 (-0600) Subject: going to look into why it is doing fuckery X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=1d5d18a6c438c7b78af0b91ca29e41747aa0d148;p=16.git going to look into why it is doing fuckery --- diff --git a/DEBUG.16B b/DEBUG.16B index 30e247d4..a78dbcdf 100755 --- a/DEBUG.16B +++ b/DEBUG.16B @@ -1,210 +1,210 @@ -Seg:0 Size:4864 Owner:0x0 -+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++0 -Seg:1300 Size:256 Owner:0x2cb7 -++++ -Seg:1400 Size:256 Owner:0x2aba -++++ -Seg:1500 Size:256 Owner:0x2abc -++++ -Seg:1600 Size:256 Owner:0x2abe -++++ -Seg:1700 Size:256 Owner:0x2ac0 -++++ -Seg:1800 Size:256 Owner:0x2ac2 -++++ -Seg:1900 Size:256 Owner:0x2ac4 -++++ -Seg:1a00 Size:256 Owner:0x2ac6 -++++ -Seg:1b00 Size:256 Owner:0x2ac8 -++++ -Seg:1c00 Size:256 Owner:0x2aca -++++ -Seg:1d00 Size:256 Owner:0x2acc -++++ -Seg:1e00 Size:256 Owner:0x2ace -++++ -Seg:1f00 Size:256 Owner:0x2ad0 -++++ -Seg:2000 Size:256 Owner:0x2ad2 -++++ -Seg:2100 Size:256 Owner:0x2ad4 -++++ -Seg:2200 Size:256 Owner:0x2ad6 -++++ -Seg:2300 Size:256 Owner:0x2ad8 -++++ -Seg:2400 Size:256 Owner:0x2ada -++++ -Seg:2500 Size:256 Owner:0x2adc -++++ -Seg:2600 Size:256 Owner:0x2ade -++++ -Seg:2700 Size:256 Owner:0x2ae0 -++++ -Seg:2800 Size:256 Owner:0x2ae2 +Seg:0 Size:2705 Owner:0x0 +++++++++++++++++++++++++++++++++++0 +Seg:a91 Size:256 Owner:0x2cb7 ++++++ +Seg:b91 Size:256 Owner:0x2aba ++++ -Seg:2900 Size:256 Owner:0x2ae4 +Seg:c91 Size:256 Owner:0x2abc ++++ -Seg:2a00 Size:256 Owner:0x2ae6 +Seg:d91 Size:256 Owner:0x2abe ++++ -Seg:2b00 Size:256 Owner:0x2ae8 +Seg:e91 Size:256 Owner:0x2ac0 ++++ -Seg:2c00 Size:256 Owner:0x2aea +Seg:f91 Size:256 Owner:0x2ac2 ++++++ +Seg:1091 Size:256 Owner:0x2ac4 ++++ -Seg:2d00 Size:256 Owner:0x2aec +Seg:1191 Size:256 Owner:0x2ac6 ++++ -Seg:2e00 Size:256 Owner:0x2aee +Seg:1291 Size:256 Owner:0x2ac8 ++++ -Seg:2f00 Size:256 Owner:0x2af0 +Seg:1391 Size:256 Owner:0x2aca ++++ -Seg:3000 Size:256 Owner:0x2af2 +Seg:1491 Size:256 Owner:0x2acc ++++++ +Seg:1591 Size:256 Owner:0x2ace ++++ -Seg:3100 Size:256 Owner:0x2af4 +Seg:1691 Size:256 Owner:0x2ad0 ++++ -Seg:3200 Size:256 Owner:0x2af6 +Seg:1791 Size:256 Owner:0x2ad2 ++++ -Seg:3300 Size:256 Owner:0x2af8 +Seg:1891 Size:256 Owner:0x2ad4 ++++ -Seg:3400 Size:256 Owner:0x2afa +Seg:1991 Size:256 Owner:0x2ad6 ++++++ +Seg:1a91 Size:256 Owner:0x2ad8 ++++ -Seg:3500 Size:256 Owner:0x2afc +Seg:1b91 Size:256 Owner:0x2ada ++++ -Seg:3600 Size:256 Owner:0x2afe +Seg:1c91 Size:256 Owner:0x2adc ++++ -Seg:3700 Size:256 Owner:0x2b00 +Seg:1d91 Size:256 Owner:0x2ade ++++ -Seg:3800 Size:256 Owner:0x2b02 +Seg:1e91 Size:256 Owner:0x2ae0 ++++++ +Seg:1f91 Size:256 Owner:0x2ae2 ++++ -Seg:3900 Size:256 Owner:0x2b04 +Seg:2091 Size:256 Owner:0x2ae4 ++++ -Seg:3a00 Size:256 Owner:0x2b06 +Seg:2191 Size:256 Owner:0x2ae6 ++++ -Seg:3b00 Size:256 Owner:0x2b08 +Seg:2291 Size:256 Owner:0x2ae8 ++++ -Seg:3c00 Size:256 Owner:0x2b0a +Seg:2391 Size:256 Owner:0x2aea ++++++ +Seg:2491 Size:256 Owner:0x2aec ++++ -Seg:3d00 Size:256 Owner:0x2b0c +Seg:2591 Size:256 Owner:0x2aee ++++ -Seg:3e00 Size:256 Owner:0x2b0e +Seg:2691 Size:256 Owner:0x2af0 ++++ -Seg:3f00 Size:256 Owner:0x2b10 +Seg:2791 Size:256 Owner:0x2af2 ++++ -Seg:4000 Size:256 Owner:0x2b12 +Seg:2891 Size:256 Owner:0x2af4 ++++++ +Seg:2991 Size:256 Owner:0x2af6 ++++ -Seg:4100 Size:256 Owner:0x2b14 +Seg:2a91 Size:256 Owner:0x2af8 ++++ -Seg:4200 Size:256 Owner:0x2b16 +Seg:2b91 Size:256 Owner:0x2afa ++++ -Seg:4300 Size:256 Owner:0x2b18 +Seg:2c91 Size:256 Owner:0x2afc ++++ -Seg:4400 Size:256 Owner:0x2b1a +Seg:2d91 Size:256 Owner:0x2afe ++++++ +Seg:2e91 Size:256 Owner:0x2b00 ++++ -Seg:4500 Size:256 Owner:0x2b1c +Seg:2f91 Size:256 Owner:0x2b02 ++++ -Seg:4600 Size:256 Owner:0x2b1e +Seg:3091 Size:256 Owner:0x2b04 ++++ -Seg:4700 Size:256 Owner:0x2b20 +Seg:3191 Size:256 Owner:0x2b06 ++++ -Seg:4800 Size:256 Owner:0x2b22 +Seg:3291 Size:256 Owner:0x2b08 ++++++ +Seg:3391 Size:256 Owner:0x2b0a ++++ -Seg:4900 Size:256 Owner:0x2b24 +Seg:3491 Size:256 Owner:0x2b0c ++++ -Seg:4a00 Size:256 Owner:0x2b26 +Seg:3591 Size:256 Owner:0x2b0e ++++ -Seg:4b00 Size:256 Owner:0x2b28 +Seg:3691 Size:256 Owner:0x2b10 ++++ -Seg:4c00 Size:256 Owner:0x2b2a +Seg:3791 Size:256 Owner:0x2b12 ++++++ +Seg:3891 Size:256 Owner:0x2b14 ++++ -Seg:4d00 Size:256 Owner:0x2b2c +Seg:3991 Size:256 Owner:0x2b16 ++++ -Seg:4e00 Size:256 Owner:0x2b2e +Seg:3a91 Size:256 Owner:0x2b18 ++++ -Seg:4f00 Size:256 Owner:0x2b30 +Seg:3b91 Size:256 Owner:0x2b1a ++++ -Seg:5000 Size:256 Owner:0x2b32 +Seg:3c91 Size:256 Owner:0x2b1c ++++++ +Seg:3d91 Size:256 Owner:0x2b1e ++++ -Seg:5100 Size:256 Owner:0x2b34 +Seg:3e91 Size:256 Owner:0x2b20 ++++ -Seg:5200 Size:256 Owner:0x2b36 +Seg:3f91 Size:256 Owner:0x2b22 ++++ -Seg:5300 Size:256 Owner:0x2b38 +Seg:4091 Size:256 Owner:0x2b24 ++++ -Seg:5400 Size:256 Owner:0x2b3a +Seg:4191 Size:256 Owner:0x2b26 ++++++ +Seg:4291 Size:256 Owner:0x2b28 ++++ -Seg:5500 Size:256 Owner:0x2b3c +Seg:4391 Size:256 Owner:0x2b2a ++++ -Seg:5600 Size:256 Owner:0x2b3e +Seg:4491 Size:256 Owner:0x2b2c ++++ -Seg:5700 Size:256 Owner:0x2b40 +Seg:4591 Size:256 Owner:0x2b2e ++++ -Seg:5800 Size:256 Owner:0x2b42 +Seg:4691 Size:256 Owner:0x2b30 ++++++ +Seg:4791 Size:256 Owner:0x2b32 ++++ -Seg:5900 Size:256 Owner:0x2b44 +Seg:4891 Size:256 Owner:0x2b34 ++++ -Seg:5a00 Size:256 Owner:0x2b46 +Seg:4991 Size:256 Owner:0x2b36 ++++ -Seg:5b00 Size:256 Owner:0x2b48 +Seg:4a91 Size:256 Owner:0x2b38 ++++ -Seg:5c00 Size:256 Owner:0x2b4a +Seg:4b91 Size:256 Owner:0x2b3a ++++++ +Seg:4c91 Size:256 Owner:0x2b3c ++++ -Seg:5d00 Size:256 Owner:0x2b4c +Seg:4d91 Size:256 Owner:0x2b3e ++++ -Seg:5e00 Size:256 Owner:0x2b4e +Seg:4e91 Size:256 Owner:0x2b40 ++++ -Seg:5f00 Size:256 Owner:0x2b50 +Seg:4f91 Size:256 Owner:0x2b42 ++++ -Seg:6000 Size:256 Owner:0x2b52 +Seg:5091 Size:256 Owner:0x2b44 ++++++ +Seg:5191 Size:256 Owner:0x2b46 ++++ -Seg:6100 Size:256 Owner:0x2b54 +Seg:5291 Size:256 Owner:0x2b48 ++++ -Seg:6200 Size:256 Owner:0x2b56 +Seg:5391 Size:256 Owner:0x2b4a ++++ -Seg:6300 Size:256 Owner:0x2b58 +Seg:5491 Size:256 Owner:0x2b4c ++++ -Seg:6400 Size:256 Owner:0x2b5a +Seg:5591 Size:256 Owner:0x2b4e ++++++ +Seg:5691 Size:256 Owner:0x2b50 ++++ -Seg:6500 Size:256 Owner:0x2b5c +Seg:5791 Size:256 Owner:0x2b52 ++++ -Seg:6600 Size:256 Owner:0x2b5e +Seg:5891 Size:256 Owner:0x2b54 ++++ -Seg:6700 Size:256 Owner:0x2b60 +Seg:5991 Size:256 Owner:0x2b56 ++++ -Seg:6800 Size:256 Owner:0x2b62 +Seg:5a91 Size:256 Owner:0x2b58 ++++++ +Seg:5b91 Size:256 Owner:0x2b5a ++++ -Seg:6900 Size:256 Owner:0x2b64 +Seg:5c91 Size:256 Owner:0x2b5c ++++ -Seg:6a00 Size:256 Owner:0x2b66 +Seg:5d91 Size:256 Owner:0x2b5e ++++ -Seg:6b00 Size:256 Owner:0x2b68 +Seg:5e91 Size:256 Owner:0x2b60 ++++ -Seg:6c00 Size:256 Owner:0x2b6a +Seg:5f91 Size:256 Owner:0x2b62 ++++++ +Seg:6091 Size:256 Owner:0x2b64 ++++ -Seg:6d00 Size:256 Owner:0x2b6c +Seg:6191 Size:256 Owner:0x2b66 ++++ -Seg:6e00 Size:256 Owner:0x2b6e +Seg:6291 Size:256 Owner:0x2b68 ++++ -Seg:6f00 Size:256 Owner:0x2b70 +Seg:6391 Size:256 Owner:0x2b6a ++++ -Seg:7000 Size:256 Owner:0x2b72 +Seg:6491 Size:256 Owner:0x2b6c ++++++ +Seg:6591 Size:256 Owner:0x2b6e ++++ -Seg:7100 Size:256 Owner:0x2b74 +Seg:6691 Size:256 Owner:0x2b70 ++++ -Seg:7200 Size:256 Owner:0x2b76 +Seg:6791 Size:256 Owner:0x2b72 ++++ -Seg:7300 Size:256 Owner:0x2b78 +Seg:6891 Size:256 Owner:0x2b74 ++++ -Seg:7400 Size:256 Owner:0x2b7a +Seg:6991 Size:256 Owner:0x2b76 ++++++ +Seg:6a91 Size:256 Owner:0x2b78 ++++ -Seg:7500 Size:256 Owner:0x2b7c +Seg:6b91 Size:256 Owner:0x2b7a ++++ -Seg:7600 Size:256 Owner:0x2b7e +Seg:6c91 Size:256 Owner:0x2b7c ++++ -Seg:7700 Size:256 Owner:0x2b80 +Seg:6d91 Size:256 Owner:0x2b7e ++++ -Seg:7800 Size:273 Owner:0x2a92 +Seg:6e91 Size:256 Owner:0x2b80 ++++++ +Seg:6f91 Size:273 Owner:0x2a92 ++++ -Seg:9fde Size:32802 Owner:0x0 +Seg:9790 Size:34928 Owner:0x0  Seg:9ffe Size:24577 Owner:0x0 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ \ No newline at end of file diff --git a/HEAP.16W b/HEAP.16W index 2124017e..0765b1b6 100755 --- a/HEAP.16W +++ b/HEAP.16W @@ -4,9 +4,9 @@ USED block at 24140016 of size 66 USED block at 24140058 of size 66 FREE block at 2414009a of size 18 - USED block at 241400ac of size 514 - USED block at 241402ae of size 20 - FREE block at 241402c2 of size 7482 + USED block at 241400ac of size 136 + USED block at 24140134 of size 20 + FREE block at 24140148 of size 7860 OK - end of heap == near == @@ -27,21 +27,21 @@ OK - end of heap USED block at 24140016 of size 66 USED block at 24140058 of size 66 USED block at 2414009a of size 18 - USED block at 241400ac of size 514 - USED block at 241402ae of size 20 - USED block at 241402c2 of size 7482 + USED block at 241400ac of size 136 + USED block at 24140134 of size 20 + USED block at 24140148 of size 7860 OK - end of heap Memory Type Total Used Free ---------------- -------- -------- -------- -Default 8166 666 7500 +Default 8166 288 7878 Near 4902 496 4406 -Far 8166 666 7500 +Far 8166 288 7878 ---------------- -------- -------- -------- coreleft = 4404 -farcoreleft = 44518 -GetFreeSize = 40134 +farcoreleft = 44896 +GetFreeSize = 40512 GetNearFreeSize = 4406 -GetFarFreeSize = 40134 +GetFarFreeSize = 40512 memavl = 4404 stackavail = 31606 diff --git a/bcexmm.exe b/bcexmm.exe index 82619291..a2beb2d6 100755 Binary files a/bcexmm.exe and b/bcexmm.exe differ diff --git a/bcexmm.prj b/bcexmm.prj index 294ea009..fdba4c92 100755 Binary files a/bcexmm.prj and b/bcexmm.prj differ diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index cd99d8c6..93bd2d71 100755 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -788,11 +788,11 @@ void MM_Startup(global_game_variables_t *gvar) #ifdef __WATCOMC__ _nheapgrow(); length=(dword)_memavl();//(dword)GetFreeSize(); - start = (void far *)(gvar->mm.nearheap = _nmalloc(length)); + start = (void __near *)(gvar->mm.nearheap = _nmalloc(length)); #endif #ifdef __BORLANDC__ length=coreleft(); - start = (void far *)(gvar->mm.nearheap = malloc(length)); + start = (void near *)(gvar->mm.nearheap = malloc(length)); #endif length -= 16-(FP_OFF(start)&15); length -= SAVENEARHEAP;