]> 4ch.mooo.com Git - 16.git/commitdiff
i feel horrendous! i should stop! i fixed up showmemorydetail function ^^. and initia...
authorsparky4 <sparky4@cock.li>
Thu, 8 Jun 2017 23:00:57 +0000 (18:00 -0500)
committersparky4 <sparky4@cock.li>
Thu, 8 Jun 2017 23:00:57 +0000 (18:00 -0500)
13 files changed:
DEBUG.16B
DEBUG.16W
HEAP.16B [new file with mode: 0755]
HEAP.16W
MMDUMP.16B
MMDUMP.16W
bcexmm.exe
src/exmmtest.c
src/lib/16_ca.c
src/lib/16_hc.c
src/lib/16_hc.h
src/lib/16_mm.c
src/lib/16_t.h

index 29f57fbf212e628efd7892ac8c95d77e5a73be97..cb447fa5048ca58910ef00136989c50b44535301 100755 (executable)
--- a/DEBUG.16B
+++ b/DEBUG.16B
-\e[0mSeg:0      Size:5734       Owner:0x0\r
-\e[41;31m++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m\e[0mSeg:1666       Size:256        Owner:0x7649\r
+\e[0mSeg:0      Size:5977       Owner:0x0\r
+\e[41;31m+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m\e[0mSeg:1759    Size:256        Owner:0x78ad\r
 \e[44;34m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:1766       Size:256        Owner:0x3416\r
+\e[0m\e[0mSeg:1859       Size:256        Owner:0x367a\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:1866       Size:256        Owner:0x3418\r
+\e[0m\e[0mSeg:1959       Size:256        Owner:0x367c\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:1966       Size:256        Owner:0x341a\r
+\e[0m\e[0mSeg:1a59       Size:256        Owner:0x367e\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:1a66       Size:256        Owner:0x341c\r
+\e[0m\e[0mSeg:1b59       Size:256        Owner:0x3680\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:1b66       Size:256        Owner:0x341e\r
+\e[0m\e[0mSeg:1c59       Size:256        Owner:0x3682\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:1c66       Size:256        Owner:0x3420\r
+\e[0m\e[0mSeg:1d59       Size:256        Owner:0x3684\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:1d66       Size:256        Owner:0x3422\r
+\e[0m\e[0mSeg:1e59       Size:256        Owner:0x3686\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:1e66       Size:256        Owner:0x3424\r
+\e[0m\e[0mSeg:1f59       Size:256        Owner:0x3688\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:1f66       Size:256        Owner:0x3426\r
+\e[0m\e[0mSeg:2059       Size:256        Owner:0x368a\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2066       Size:256        Owner:0x3428\r
+\e[0m\e[0mSeg:2159       Size:256        Owner:0x368c\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2166       Size:256        Owner:0x342a\r
+\e[0m\e[0mSeg:2259       Size:256        Owner:0x368e\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2266       Size:256        Owner:0x342c\r
+\e[0m\e[0mSeg:2359       Size:256        Owner:0x3690\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2366       Size:256        Owner:0x342e\r
+\e[0m\e[0mSeg:2459       Size:256        Owner:0x3692\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2466       Size:256        Owner:0x3430\r
+\e[0m\e[0mSeg:2559       Size:256        Owner:0x3694\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2566       Size:256        Owner:0x3432\r
+\e[0m\e[0mSeg:2659       Size:256        Owner:0x3696\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2666       Size:256        Owner:0x3434\r
+\e[0m\e[0mSeg:2759       Size:256        Owner:0x3698\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2766       Size:256        Owner:0x3436\r
+\e[0m\e[0mSeg:2859       Size:256        Owner:0x369a\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2866       Size:256        Owner:0x3438\r
+\e[0m\e[0mSeg:2959       Size:256        Owner:0x369c\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2966       Size:256        Owner:0x343a\r
+\e[0m\e[0mSeg:2a59       Size:256        Owner:0x369e\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2a66       Size:256        Owner:0x343c\r
+\e[0m\e[0mSeg:2b59       Size:256        Owner:0x36a0\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2b66       Size:256        Owner:0x343e\r
+\e[0m\e[0mSeg:2c59       Size:256        Owner:0x36a2\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2c66       Size:256        Owner:0x3440\r
+\e[0m\e[0mSeg:2d59       Size:256        Owner:0x36a4\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2d66       Size:256        Owner:0x3442\r
+\e[0m\e[0mSeg:2e59       Size:256        Owner:0x36a6\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2e66       Size:256        Owner:0x3444\r
+\e[0m\e[0mSeg:2f59       Size:256        Owner:0x36a8\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2f66       Size:256        Owner:0x3446\r
+\e[0m\e[0mSeg:3059       Size:256        Owner:0x36aa\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3066       Size:256        Owner:0x3448\r
+\e[0m\e[0mSeg:3159       Size:256        Owner:0x36ac\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3166       Size:256        Owner:0x344a\r
+\e[0m\e[0mSeg:3259       Size:256        Owner:0x36ae\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3266       Size:256        Owner:0x344c\r
+\e[0m\e[0mSeg:3359       Size:256        Owner:0x36b0\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3366       Size:256        Owner:0x344e\r
+\e[0m\e[0mSeg:3459       Size:256        Owner:0x36b2\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3466       Size:256        Owner:0x3450\r
+\e[0m\e[0mSeg:3559       Size:256        Owner:0x36b4\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3566       Size:256        Owner:0x3452\r
+\e[0m\e[0mSeg:3659       Size:256        Owner:0x36b6\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3666       Size:256        Owner:0x3454\r
+\e[0m\e[0mSeg:3759       Size:256        Owner:0x36b8\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3766       Size:256        Owner:0x3456\r
+\e[0m\e[0mSeg:3859       Size:256        Owner:0x36ba\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3866       Size:256        Owner:0x3458\r
+\e[0m\e[0mSeg:3959       Size:256        Owner:0x36bc\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3966       Size:256        Owner:0x345a\r
+\e[0m\e[0mSeg:3a59       Size:256        Owner:0x36be\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3a66       Size:256        Owner:0x345c\r
+\e[0m\e[0mSeg:3b59       Size:256        Owner:0x36c0\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3b66       Size:256        Owner:0x345e\r
+\e[0m\e[0mSeg:3c59       Size:256        Owner:0x36c2\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3c66       Size:256        Owner:0x3460\r
+\e[0m\e[0mSeg:3d59       Size:256        Owner:0x36c4\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3d66       Size:256        Owner:0x3462\r
+\e[0m\e[0mSeg:3e59       Size:256        Owner:0x36c6\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3e66       Size:256        Owner:0x3464\r
+\e[0m\e[0mSeg:3f59       Size:256        Owner:0x36c8\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3f66       Size:256        Owner:0x3466\r
+\e[0m\e[0mSeg:4059       Size:256        Owner:0x36ca\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4066       Size:256        Owner:0x3468\r
+\e[0m\e[0mSeg:4159       Size:256        Owner:0x36cc\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4166       Size:256        Owner:0x346a\r
+\e[0m\e[0mSeg:4259       Size:256        Owner:0x36ce\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4266       Size:256        Owner:0x346c\r
+\e[0m\e[0mSeg:4359       Size:256        Owner:0x36d0\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4366       Size:256        Owner:0x346e\r
+\e[0m\e[0mSeg:4459       Size:256        Owner:0x36d2\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4466       Size:256        Owner:0x3470\r
+\e[0m\e[0mSeg:4559       Size:256        Owner:0x36d4\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4566       Size:256        Owner:0x3472\r
+\e[0m\e[0mSeg:4659       Size:256        Owner:0x36d6\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4666       Size:256        Owner:0x3474\r
+\e[0m\e[0mSeg:4759       Size:256        Owner:0x36d8\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4766       Size:256        Owner:0x3476\r
+\e[0m\e[0mSeg:4859       Size:256        Owner:0x36da\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4866       Size:256        Owner:0x3478\r
+\e[0m\e[0mSeg:4959       Size:256        Owner:0x36dc\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4966       Size:256        Owner:0x347a\r
+\e[0m\e[0mSeg:4a59       Size:256        Owner:0x36de\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4a66       Size:256        Owner:0x347c\r
+\e[0m\e[0mSeg:4b59       Size:256        Owner:0x36e0\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4b66       Size:256        Owner:0x347e\r
+\e[0m\e[0mSeg:4c59       Size:256        Owner:0x36e2\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4c66       Size:256        Owner:0x3480\r
+\e[0m\e[0mSeg:4d59       Size:256        Owner:0x36e4\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4d66       Size:256        Owner:0x3482\r
+\e[0m\e[0mSeg:4e59       Size:256        Owner:0x36e6\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4e66       Size:256        Owner:0x3484\r
+\e[0m\e[0mSeg:4f59       Size:256        Owner:0x36e8\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4f66       Size:256        Owner:0x3486\r
+\e[0m\e[0mSeg:5059       Size:256        Owner:0x36ea\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5066       Size:256        Owner:0x3488\r
+\e[0m\e[0mSeg:5159       Size:256        Owner:0x36ec\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5166       Size:256        Owner:0x348a\r
+\e[0m\e[0mSeg:5259       Size:256        Owner:0x36ee\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5266       Size:256        Owner:0x348c\r
+\e[0m\e[0mSeg:5359       Size:256        Owner:0x36f0\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5366       Size:256        Owner:0x348e\r
+\e[0m\e[0mSeg:5459       Size:256        Owner:0x36f2\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5466       Size:256        Owner:0x3490\r
+\e[0m\e[0mSeg:5559       Size:256        Owner:0x36f4\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5566       Size:256        Owner:0x3492\r
+\e[0m\e[0mSeg:5659       Size:256        Owner:0x36f6\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5666       Size:256        Owner:0x3494\r
+\e[0m\e[0mSeg:5759       Size:256        Owner:0x36f8\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5766       Size:256        Owner:0x3496\r
+\e[0m\e[0mSeg:5859       Size:256        Owner:0x36fa\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5866       Size:256        Owner:0x3498\r
+\e[0m\e[0mSeg:5959       Size:256        Owner:0x36fc\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5966       Size:256        Owner:0x349a\r
+\e[0m\e[0mSeg:5a59       Size:256        Owner:0x36fe\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5a66       Size:256        Owner:0x349c\r
+\e[0m\e[0mSeg:5b59       Size:256        Owner:0x3700\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5b66       Size:256        Owner:0x349e\r
+\e[0m\e[0mSeg:5c59       Size:256        Owner:0x3702\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5c66       Size:256        Owner:0x34a0\r
+\e[0m\e[0mSeg:5d59       Size:256        Owner:0x3704\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5d66       Size:256        Owner:0x34a2\r
+\e[0m\e[0mSeg:5e59       Size:256        Owner:0x3706\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5e66       Size:256        Owner:0x34a4\r
+\e[0m\e[0mSeg:5f59       Size:256        Owner:0x3708\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5f66       Size:256        Owner:0x34a6\r
+\e[0m\e[0mSeg:6059       Size:256        Owner:0x370a\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6066       Size:256        Owner:0x34a8\r
+\e[0m\e[0mSeg:6159       Size:256        Owner:0x370c\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6166       Size:256        Owner:0x34aa\r
+\e[0m\e[0mSeg:6259       Size:256        Owner:0x370e\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6266       Size:256        Owner:0x34ac\r
+\e[0m\e[0mSeg:6359       Size:256        Owner:0x3710\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6366       Size:256        Owner:0x34ae\r
+\e[0m\e[0mSeg:6459       Size:256        Owner:0x3712\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6466       Size:256        Owner:0x34b0\r
+\e[0m\e[0mSeg:6559       Size:256        Owner:0x3714\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6566       Size:256        Owner:0x34b2\r
+\e[0m\e[0mSeg:6659       Size:256        Owner:0x3716\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6666       Size:256        Owner:0x34b4\r
+\e[0m\e[0mSeg:6759       Size:256        Owner:0x3718\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6766       Size:256        Owner:0x34b6\r
+\e[0m\e[0mSeg:6859       Size:256        Owner:0x371a\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6866       Size:256        Owner:0x34b8\r
+\e[0m\e[0mSeg:6959       Size:256        Owner:0x371c\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6966       Size:256        Owner:0x34ba\r
+\e[0m\e[0mSeg:6a59       Size:256        Owner:0x371e\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6a66       Size:256        Owner:0x34bc\r
+\e[0m\e[0mSeg:6b59       Size:256        Owner:0x3720\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6b66       Size:256        Owner:0x34be\r
+\e[0m\e[0mSeg:6c59       Size:256        Owner:0x3722\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6c66       Size:256        Owner:0x34c0\r
+\e[0m\e[0mSeg:6d59       Size:256        Owner:0x3724\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6d66       Size:256        Owner:0x34c2\r
+\e[0m\e[0mSeg:6e59       Size:256        Owner:0x3726\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6e66       Size:256        Owner:0x34c4\r
+\e[0m\e[0mSeg:6f59       Size:256        Owner:0x3728\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6f66       Size:256        Owner:0x34c6\r
+\e[0m\e[0mSeg:7059       Size:256        Owner:0x372a\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:7066       Size:256        Owner:0x34c8\r
+\e[0m\e[0mSeg:7159       Size:256        Owner:0x372c\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:7166       Size:256        Owner:0x34ca\r
+\e[0m\e[0mSeg:7259       Size:256        Owner:0x372e\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:7266       Size:256        Owner:0x34cc\r
+\e[0m\e[0mSeg:7359       Size:256        Owner:0x3730\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:7366       Size:256        Owner:0x34ce\r
+\e[0m\e[0mSeg:7459       Size:256        Owner:0x3732\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:7466       Size:256        Owner:0x34d0\r
+\e[0m\e[0mSeg:7559       Size:256        Owner:0x3734\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:7566       Size:256        Owner:0x34d2\r
+\e[0m\e[0mSeg:7659       Size:256        Owner:0x3736\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:7666       Size:256        Owner:0x34d4\r
+\e[0m\e[0mSeg:7759       Size:256        Owner:0x3738\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:7766       Size:256        Owner:0x34d6\r
+\e[0m\e[0mSeg:7859       Size:256        Owner:0x373a\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:7866       Size:256        Owner:0x34d8\r
+\e[0m\e[0mSeg:7959       Size:256        Owner:0x373c\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:7966       Size:256        Owner:0x34da\r
+\e[0m\e[0mSeg:7a59       Size:256        Owner:0x373e\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:7a66       Size:256        Owner:0x34dc\r
+\e[0m\e[0mSeg:7b59       Size:256        Owner:0x3740\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:7b66       Size:273        Owner:0x7649\r
-\e[44;34m\e[0m\e[42;32m000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\r
+\e[0m\e[0mSeg:7c59       Size:273        Owner:0x78ad\r
+\e[44;34m\e[0m\e[42;32m000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\r
 \e[0m\e[0mSeg:9fbe       Size:32834      Owner:0x0\r
 \e[41;31m\e[0m\e[42;32m\r
 \e[0m\e[0mSeg:9ffe       Size:24577      Owner:0x0\r
index e3f2fbb270842ae8485b3c92026705e006e7e920..e870ee7702f4a3efa432e9458bbdc1e334f74046 100755 (executable)
--- a/DEBUG.16W
+++ b/DEBUG.16W
-\e[0mSeg:0      Size:9775       Owner:0x0\r
+\e[0mSeg:0      Size:9789       Owner:0x0\r
 \e[41;31m+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m\e[42;32m00\r
-\e[0m\e[0mSeg:2697       Size:76 Owner:0x0\r
+\e[0m\e[0mSeg:26a6       Size:76 Owner:0x0\r
 \e[41;31m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:26e3       Size:256        Owner:0x5fec\r
+\e[0m\e[0mSeg:26f2       Size:256        Owner:0x5fcc\r
 \e[44;34m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:27e3       Size:256        Owner:0x1e22\r
+\e[0m\e[0mSeg:27f2       Size:256        Owner:0x1e02\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:28e3       Size:256        Owner:0x1e24\r
+\e[0m\e[0mSeg:28f2       Size:256        Owner:0x1e04\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:29e3       Size:256        Owner:0x1e26\r
+\e[0m\e[0mSeg:29f2       Size:256        Owner:0x1e06\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2ae3       Size:256        Owner:0x1e28\r
+\e[0m\e[0mSeg:2af2       Size:256        Owner:0x1e08\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2be3       Size:256        Owner:0x1e2a\r
+\e[0m\e[0mSeg:2bf2       Size:256        Owner:0x1e0a\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2ce3       Size:256        Owner:0x1e2c\r
+\e[0m\e[0mSeg:2cf2       Size:256        Owner:0x1e0c\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2de3       Size:256        Owner:0x1e2e\r
+\e[0m\e[0mSeg:2df2       Size:256        Owner:0x1e0e\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2ee3       Size:256        Owner:0x1e30\r
+\e[0m\e[0mSeg:2ef2       Size:256        Owner:0x1e10\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:2fe3       Size:256        Owner:0x1e32\r
+\e[0m\e[0mSeg:2ff2       Size:256        Owner:0x1e12\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:30e3       Size:256        Owner:0x1e34\r
+\e[0m\e[0mSeg:30f2       Size:256        Owner:0x1e14\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:31e3       Size:256        Owner:0x1e36\r
+\e[0m\e[0mSeg:31f2       Size:256        Owner:0x1e16\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:32e3       Size:256        Owner:0x1e38\r
+\e[0m\e[0mSeg:32f2       Size:256        Owner:0x1e18\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:33e3       Size:256        Owner:0x1e3a\r
+\e[0m\e[0mSeg:33f2       Size:256        Owner:0x1e1a\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:34e3       Size:256        Owner:0x1e3c\r
+\e[0m\e[0mSeg:34f2       Size:256        Owner:0x1e1c\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:35e3       Size:256        Owner:0x1e3e\r
+\e[0m\e[0mSeg:35f2       Size:256        Owner:0x1e1e\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:36e3       Size:256        Owner:0x1e40\r
+\e[0m\e[0mSeg:36f2       Size:256        Owner:0x1e20\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:37e3       Size:256        Owner:0x1e42\r
+\e[0m\e[0mSeg:37f2       Size:256        Owner:0x1e22\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:38e3       Size:256        Owner:0x1e44\r
+\e[0m\e[0mSeg:38f2       Size:256        Owner:0x1e24\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:39e3       Size:256        Owner:0x1e46\r
+\e[0m\e[0mSeg:39f2       Size:256        Owner:0x1e26\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3ae3       Size:256        Owner:0x1e48\r
+\e[0m\e[0mSeg:3af2       Size:256        Owner:0x1e28\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3be3       Size:256        Owner:0x1e4a\r
+\e[0m\e[0mSeg:3bf2       Size:256        Owner:0x1e2a\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3ce3       Size:256        Owner:0x1e4c\r
+\e[0m\e[0mSeg:3cf2       Size:256        Owner:0x1e2c\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3de3       Size:256        Owner:0x1e4e\r
+\e[0m\e[0mSeg:3df2       Size:256        Owner:0x1e2e\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3ee3       Size:256        Owner:0x1e50\r
+\e[0m\e[0mSeg:3ef2       Size:256        Owner:0x1e30\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:3fe3       Size:256        Owner:0x1e52\r
+\e[0m\e[0mSeg:3ff2       Size:256        Owner:0x1e32\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:40e3       Size:256        Owner:0x1e54\r
+\e[0m\e[0mSeg:40f2       Size:256        Owner:0x1e34\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:41e3       Size:256        Owner:0x1e56\r
+\e[0m\e[0mSeg:41f2       Size:256        Owner:0x1e36\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:42e3       Size:256        Owner:0x1e58\r
+\e[0m\e[0mSeg:42f2       Size:256        Owner:0x1e38\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:43e3       Size:256        Owner:0x1e5a\r
+\e[0m\e[0mSeg:43f2       Size:256        Owner:0x1e3a\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:44e3       Size:256        Owner:0x1e5c\r
+\e[0m\e[0mSeg:44f2       Size:256        Owner:0x1e3c\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:45e3       Size:256        Owner:0x1e5e\r
+\e[0m\e[0mSeg:45f2       Size:256        Owner:0x1e3e\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:46e3       Size:256        Owner:0x1e60\r
+\e[0m\e[0mSeg:46f2       Size:256        Owner:0x1e40\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:47e3       Size:256        Owner:0x1e62\r
+\e[0m\e[0mSeg:47f2       Size:256        Owner:0x1e42\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:48e3       Size:256        Owner:0x1e64\r
+\e[0m\e[0mSeg:48f2       Size:256        Owner:0x1e44\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:49e3       Size:256        Owner:0x1e66\r
+\e[0m\e[0mSeg:49f2       Size:256        Owner:0x1e46\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4ae3       Size:256        Owner:0x1e68\r
+\e[0m\e[0mSeg:4af2       Size:256        Owner:0x1e48\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4be3       Size:256        Owner:0x1e6a\r
+\e[0m\e[0mSeg:4bf2       Size:256        Owner:0x1e4a\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4ce3       Size:256        Owner:0x1e6c\r
+\e[0m\e[0mSeg:4cf2       Size:256        Owner:0x1e4c\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4de3       Size:256        Owner:0x1e6e\r
+\e[0m\e[0mSeg:4df2       Size:256        Owner:0x1e4e\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4ee3       Size:256        Owner:0x1e70\r
+\e[0m\e[0mSeg:4ef2       Size:256        Owner:0x1e50\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:4fe3       Size:256        Owner:0x1e72\r
+\e[0m\e[0mSeg:4ff2       Size:256        Owner:0x1e52\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:50e3       Size:256        Owner:0x1e74\r
+\e[0m\e[0mSeg:50f2       Size:256        Owner:0x1e54\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:51e3       Size:256        Owner:0x1e76\r
+\e[0m\e[0mSeg:51f2       Size:256        Owner:0x1e56\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:52e3       Size:256        Owner:0x1e78\r
+\e[0m\e[0mSeg:52f2       Size:256        Owner:0x1e58\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:53e3       Size:256        Owner:0x1e7a\r
+\e[0m\e[0mSeg:53f2       Size:256        Owner:0x1e5a\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:54e3       Size:256        Owner:0x1e7c\r
+\e[0m\e[0mSeg:54f2       Size:256        Owner:0x1e5c\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:55e3       Size:256        Owner:0x1e7e\r
+\e[0m\e[0mSeg:55f2       Size:256        Owner:0x1e5e\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:56e3       Size:256        Owner:0x1e80\r
+\e[0m\e[0mSeg:56f2       Size:256        Owner:0x1e60\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:57e3       Size:256        Owner:0x1e82\r
+\e[0m\e[0mSeg:57f2       Size:256        Owner:0x1e62\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:58e3       Size:256        Owner:0x1e84\r
+\e[0m\e[0mSeg:58f2       Size:256        Owner:0x1e64\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:59e3       Size:256        Owner:0x1e86\r
+\e[0m\e[0mSeg:59f2       Size:256        Owner:0x1e66\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5ae3       Size:256        Owner:0x1e88\r
+\e[0m\e[0mSeg:5af2       Size:256        Owner:0x1e68\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5be3       Size:256        Owner:0x1e8a\r
+\e[0m\e[0mSeg:5bf2       Size:256        Owner:0x1e6a\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5ce3       Size:256        Owner:0x1e8c\r
+\e[0m\e[0mSeg:5cf2       Size:256        Owner:0x1e6c\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5de3       Size:256        Owner:0x1e8e\r
+\e[0m\e[0mSeg:5df2       Size:256        Owner:0x1e6e\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5ee3       Size:256        Owner:0x1e90\r
+\e[0m\e[0mSeg:5ef2       Size:256        Owner:0x1e70\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:5fe3       Size:256        Owner:0x1e92\r
+\e[0m\e[0mSeg:5ff2       Size:256        Owner:0x1e72\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:60e3       Size:256        Owner:0x1e94\r
+\e[0m\e[0mSeg:60f2       Size:256        Owner:0x1e74\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:61e3       Size:256        Owner:0x1e96\r
+\e[0m\e[0mSeg:61f2       Size:256        Owner:0x1e76\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:62e3       Size:256        Owner:0x1e98\r
+\e[0m\e[0mSeg:62f2       Size:256        Owner:0x1e78\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:63e3       Size:256        Owner:0x1e9a\r
+\e[0m\e[0mSeg:63f2       Size:256        Owner:0x1e7a\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:64e3       Size:256        Owner:0x1e9c\r
+\e[0m\e[0mSeg:64f2       Size:256        Owner:0x1e7c\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:65e3       Size:256        Owner:0x1e9e\r
+\e[0m\e[0mSeg:65f2       Size:256        Owner:0x1e7e\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:66e3       Size:256        Owner:0x1ea0\r
+\e[0m\e[0mSeg:66f2       Size:256        Owner:0x1e80\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:67e3       Size:256        Owner:0x1ea2\r
+\e[0m\e[0mSeg:67f2       Size:256        Owner:0x1e82\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:68e3       Size:256        Owner:0x1ea4\r
+\e[0m\e[0mSeg:68f2       Size:256        Owner:0x1e84\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:69e3       Size:256        Owner:0x1ea6\r
+\e[0m\e[0mSeg:69f2       Size:256        Owner:0x1e86\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6ae3       Size:256        Owner:0x1ea8\r
+\e[0m\e[0mSeg:6af2       Size:256        Owner:0x1e88\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6be3       Size:256        Owner:0x1eaa\r
+\e[0m\e[0mSeg:6bf2       Size:256        Owner:0x1e8a\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6ce3       Size:256        Owner:0x1eac\r
+\e[0m\e[0mSeg:6cf2       Size:256        Owner:0x1e8c\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6de3       Size:256        Owner:0x1eae\r
+\e[0m\e[0mSeg:6df2       Size:256        Owner:0x1e8e\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6ee3       Size:256        Owner:0x1eb0\r
+\e[0m\e[0mSeg:6ef2       Size:256        Owner:0x1e90\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:6fe3       Size:256        Owner:0x1eb2\r
+\e[0m\e[0mSeg:6ff2       Size:256        Owner:0x1e92\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:70e3       Size:256        Owner:0x1eb4\r
+\e[0m\e[0mSeg:70f2       Size:256        Owner:0x1e94\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:71e3       Size:256        Owner:0x1eb6\r
+\e[0m\e[0mSeg:71f2       Size:256        Owner:0x1e96\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:72e3       Size:256        Owner:0x1eb8\r
+\e[0m\e[0mSeg:72f2       Size:256        Owner:0x1e98\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:73e3       Size:256        Owner:0x1eba\r
+\e[0m\e[0mSeg:73f2       Size:256        Owner:0x1e9a\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:74e3       Size:256        Owner:0x1ebc\r
+\e[0m\e[0mSeg:74f2       Size:256        Owner:0x1e9c\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:75e3       Size:256        Owner:0x1ebe\r
+\e[0m\e[0mSeg:75f2       Size:256        Owner:0x1e9e\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:76e3       Size:256        Owner:0x1ec0\r
+\e[0m\e[0mSeg:76f2       Size:256        Owner:0x1ea0\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:77e3       Size:256        Owner:0x1ec2\r
+\e[0m\e[0mSeg:77f2       Size:256        Owner:0x1ea2\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:78e3       Size:256        Owner:0x1ec4\r
+\e[0m\e[0mSeg:78f2       Size:256        Owner:0x1ea4\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:79e3       Size:256        Owner:0x1ec6\r
+\e[0m\e[0mSeg:79f2       Size:256        Owner:0x1ea6\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:7ae3       Size:256        Owner:0x1ec8\r
+\e[0m\e[0mSeg:7af2       Size:256        Owner:0x1ea8\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:7be3       Size:256        Owner:0x1eca\r
+\e[0m\e[0mSeg:7bf2       Size:256        Owner:0x1eaa\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:7ce3       Size:256        Owner:0x1ecc\r
+\e[0m\e[0mSeg:7cf2       Size:256        Owner:0x1eac\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:7de3       Size:256        Owner:0x1ece\r
+\e[0m\e[0mSeg:7df2       Size:256        Owner:0x1eae\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:7ee3       Size:256        Owner:0x1ed0\r
+\e[0m\e[0mSeg:7ef2       Size:256        Owner:0x1eb0\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:7fe3       Size:256        Owner:0x1ed2\r
+\e[0m\e[0mSeg:7ff2       Size:256        Owner:0x1eb2\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:80e3       Size:256        Owner:0x1ed4\r
+\e[0m\e[0mSeg:80f2       Size:256        Owner:0x1eb4\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:81e3       Size:256        Owner:0x1ed6\r
+\e[0m\e[0mSeg:81f2       Size:256        Owner:0x1eb6\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:82e3       Size:256        Owner:0x1ed8\r
+\e[0m\e[0mSeg:82f2       Size:256        Owner:0x1eb8\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:83e3       Size:256        Owner:0x1eda\r
+\e[0m\e[0mSeg:83f2       Size:256        Owner:0x1eba\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:84e3       Size:256        Owner:0x1edc\r
+\e[0m\e[0mSeg:84f2       Size:256        Owner:0x1ebc\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:85e3       Size:256        Owner:0x1ede\r
+\e[0m\e[0mSeg:85f2       Size:256        Owner:0x1ebe\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:86e3       Size:256        Owner:0x1ee0\r
+\e[0m\e[0mSeg:86f2       Size:256        Owner:0x1ec0\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:87e3       Size:256        Owner:0x1ee2\r
+\e[0m\e[0mSeg:87f2       Size:256        Owner:0x1ec2\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:88e3       Size:256        Owner:0x1ee4\r
+\e[0m\e[0mSeg:88f2       Size:256        Owner:0x1ec4\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:89e3       Size:256        Owner:0x1ee6\r
+\e[0m\e[0mSeg:89f2       Size:256        Owner:0x1ec6\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:8ae3       Size:256        Owner:0x1ee8\r
+\e[0m\e[0mSeg:8af2       Size:256        Owner:0x1ec8\r
 \e[45;35m\e[0m\e[42;32m0\r
-\e[0m\e[0mSeg:8be3       Size:273        Owner:0x5fec\r
+\e[0m\e[0mSeg:8bf2       Size:273        Owner:0x5fcc\r
 \e[44;34m\e[0m\e[42;32m0000000000000000000000000000000000000000000000000000000000\r
-\e[0m\e[0mSeg:9ecd       Size:24882      Owner:0x0\r
+\e[0m\e[0mSeg:9edc       Size:24867      Owner:0x0\r
 \e[41;31m\e[0m
\ No newline at end of file
diff --git a/HEAP.16B b/HEAP.16B
new file mode 100755 (executable)
index 0000000..48b0270
--- /dev/null
+++ b/HEAP.16B
@@ -0,0 +1,28 @@
+\r
+       == near ==\r
+\r
+  FREE block at 1733:0004 of size 528\r
+  FREE block at 1754:0004 of size 64\r
+  FREE block at 1758:0004 of size 35440\r
+  FREE block at 1FFF:0004 of size 524288\r
+OK - end of heap\r
+\r
+       == far ==\r
+\r
+  FREE block at 1733:0004 of size 528\r
+  FREE block at 1754:0004 of size 64\r
+  FREE block at 1758:0004 of size 35440\r
+  FREE block at 1FFF:0004 of size 524288\r
+OK - end of heap\r
+\r
+----------------  --------   --------   --------\r
+Near              36032        0         0\r
+Far               36032        0         0\r
+----------------  --------   --------   --------\r
+HC_coreleft = 35436\r
+HC_farcoreleft = 0\r
+HC_GetNearFreeSize = 0\r
+HC_GetFarFreeSize = 0\r
+coreleft = 0\r
+farcoreleft = 0\r
+stackavail = 2828\r
index ec62ef3df96ed5aa45fa94bf4d0cb3223721f784..b0900f72b662e6746edeb3cd51e54c77860cd368 100755 (executable)
--- a/HEAP.16W
+++ b/HEAP.16W
@@ -1,41 +1,41 @@
 \r
        == near ==\r
 \r
-  USED block at 16d8:f386 of size 12\r
-  USED block at 16d8:f392 of size 322\r
-  USED block at 16d8:f4d4 of size 52\r
-  USED block at 16d8:f508 of size 20\r
-  USED block at 16d8:f51c of size 20\r
-  USED block at 16d8:f530 of size 20\r
-  USED block at 16d8:f544 of size 20\r
-  USED block at 16d8:f558 of size 20\r
-  FREE block at 16d8:f56c of size 2704\r
+  USED block at 16e7:f376 of size 12\r
+  USED block at 16e7:f382 of size 322\r
+  USED block at 16e7:f4c4 of size 52\r
+  USED block at 16e7:f4f8 of size 20\r
+  USED block at 16e7:f50c of size 20\r
+  USED block at 16e7:f520 of size 20\r
+  USED block at 16e7:f534 of size 20\r
+  USED block at 16e7:f548 of size 20\r
+  FREE block at 16e7:f55c of size 2720\r
 OK - end of heap\r
 \r
        == far ==\r
 \r
-  USED block at 26d9:0016 of size 136\r
-  FREE block at 26d9:009e of size 32442\r
-  USED block at 26d9:7f58 of size 20\r
-  FREE block at 26d9:7f6c of size 32912\r
-  FREE block at 36da:0016 of size 65510\r
-  FREE block at 46db:0016 of size 65510\r
-  FREE block at 56dc:0016 of size 65510\r
-  FREE block at 66dd:0016 of size 65510\r
-  FREE block at 76de:0016 of size 65510\r
-  FREE block at 86df:0016 of size 65510\r
-  FREE block at 96e0:0016 of size 32774\r
+  USED block at 26e8:0016 of size 136\r
+  USED block at 26e8:009e of size 32442\r
+  USED block at 26e8:7f58 of size 20\r
+  FREE block at 26e8:7f6c of size 32912\r
+  FREE block at 36e9:0016 of size 65510\r
+  FREE block at 46ea:0016 of size 65510\r
+  FREE block at 56eb:0016 of size 65510\r
+  FREE block at 66ec:0016 of size 65510\r
+  FREE block at 76ed:0016 of size 65510\r
+  FREE block at 86ee:0016 of size 65510\r
+  FREE block at 96ef:0016 of size 32774\r
 OK - end of heap\r
 \r
 Memory Type         Total      Used       Free\r
 ----------------  --------   --------   --------\r
-Near              3190         486       2704\r
-Far               32592        156       32436\r
+Near              3206         486       2720\r
+Far               32592        32598     65530\r
 ----------------  --------   --------   --------\r
-HC_coreleft = 2702\r
-HC_farcoreleft = 493872\r
-HC_GetNearFreeSize = 2704\r
-HC_GetFarFreeSize = 491188\r
-coreleft = 2702\r
-farcoreleft = 493872\r
-stackavail = 31498\r
+HC_coreleft = 2718\r
+HC_farcoreleft = 461448\r
+HC_GetNearFreeSize = 2720\r
+HC_GetFarFreeSize = 458746\r
+coreleft = 2718\r
+farcoreleft = 461448\r
+stackavail = 31454\r
index 6b662318f249b6ad5dc6cfad2ee2820bf6e1a071..25aecaf11d69661062dcd6a187f99bafaf575c22 100755 (executable)
Binary files a/MMDUMP.16B and b/MMDUMP.16B differ
index f9f91b32b1be2f1c48b90c585dc752a3fb25bb95..54da92eff5b144f1817821fc8b29cffa0e31d0aa 100755 (executable)
Binary files a/MMDUMP.16W and b/MMDUMP.16W differ
index cb9f50b946de4b32edcda1b7df115d60f648f8ad..0f3aa08fd7dbb85ad60351833e9308cb314f1c85 100755 (executable)
Binary files a/bcexmm.exe and b/bcexmm.exe differ
index 44a231d2d3f8102a43def653b5dd705a46870568..33790552297af49a5f5d611c6dde17fdac3959b2 100755 (executable)
@@ -40,7 +40,8 @@
 #define FILEREAD\r
 //#define EXMMVERBOSE\r
 //#define BUFFDUMPPAUSE\r
-//#define EXMMVERBOSE__\r
+#define EXMMVERBOSE__\r
+//#define EXMMHEAPPTR\r
 //     #define PRINTBBDUMP\r
 #define BUFFDUMP\r
 \r
@@ -179,6 +180,11 @@ main(int argc, char *argv[])
 \r
        printf("bakapee1[%s]\n", bakapee1);\r
        printf("bakapee2[%s]\n", bakapee2);\r
+\r
+                                                               #ifdef EXMMVERBOSE__\r
+       printf("coreleft():             %u\n", coreleft());\r
+       printf("farcoreleft():          %ld\n", farcoreleft());\r
+                                                               #endif\r
        KEYP\r
 \r
                                                                #ifndef NOVID\r
@@ -300,22 +306,19 @@ PRINTBB; KEYP
        DebugMemory_(&gvar, 1);\r
        MM_DumpData(&gvar);\r
        MM_Report_(&gvar);\r
+       HC_heapdump(&gvar);\r
        //printf("bakapee1=%s\n", bakapee1);\r
        //printf("bakapee2=%s\n", bakapee2);\r
-       MM_FreePtr(BBUFPTR, &gvar);\r
-                                                               #ifndef NOVID\r
-       Shutdown16(&gvar);\r
-                                                               #else //novid\r
-       ShutdownCAMMPM(&gvar);\r
-                                                               #endif //NOVID\r
-       IN_Shutdown(&gvar);\r
+\r
        printf("========================================\n");\r
+                                                               #ifdef EXMMHEAPPTR\r
        printf("near=   %Fp ",  gvar.mm.nearheap);\r
        printf("far=    %Fp",                   gvar.mm.farheap);\r
        printf("\n");\r
        printf("&near=  %Fp ",  &(gvar.mm.nearheap));\r
        printf("&far=   %Fp",           &(gvar.mm.farheap));\r
        printf("\n");\r
+                                                               #endif\r
                                                                #ifdef EXMMVERBOSE\r
        printf("bigb=   %Fp ",  BBUF);\r
        //printf("bigbr=        %04x",  BBUF);\r
@@ -324,19 +327,26 @@ PRINTBB; KEYP
        //printf("&bigb=%04x",          BBUFPTR);\r
        printf("\n");\r
                                                                #endif\r
-       printf("========================================\n");\r
-\r
                                                                #ifdef EXMMVERBOSE__\r
        printf("coreleft():             %u\n", coreleft());\r
        printf("farcoreleft():          %ld\n", farcoreleft());\r
                                                                #endif\r
+       printf("========================================\n");\r
+\r
+       MM_FreePtr(BBUFPTR, &gvar);\r
+                                                               #ifndef NOVID\r
+       Shutdown16(&gvar);\r
+                                                               #else //novid\r
+       ShutdownCAMMPM(&gvar);\r
+                                                               #endif //NOVID\r
+       IN_Shutdown(&gvar);\r
+\r
 #ifdef __WATCOMC__\r
 //this is far  printf("Total free:                     %lu\n", (dword)(HC_GetFreeSize()));\r
 //super buggy  printf("HC_coreleft():                  %u\n", HC_coreleft());\r
 //     printf("HC_farcoreleft():                       %lu\n", (dword)HC_farcoreleft());\r
        //printf("HC_GetNearFreeSize():         %u\n", HC_GetNearFreeSize());\r
        //printf("HC_GetFarFreeSize():                  %lu\n", (dword)HC_GetFarFreeSize());\r
-       HC_heapdump(&gvar);\r
 //     segatesuto();\r
 #endif\r
 #ifdef __BORLANDC__\r
index 6580e2393065732cb8ddcaa170eb63e4fa77d6f3..cb8fe2f958b7dd62343665c743d35b571ed13442 100755 (executable)
@@ -163,7 +163,7 @@ CASVT GRFILEPOS(int c, global_game_variables_t *gvar)
 }\r
 #endif\r
 \r
-#define EXTENSION      "hb1"\r
+//#define EXTENSION    "hb1"\r
 \r
 /*\r
 =============================================================================\r
@@ -1041,7 +1041,7 @@ void CAL_SetupGrFile (global_game_variables_t *gvar)
 //\r
 \r
        strcpy(fname,GDICTNAME);\r
-       strcat(fname,EXTENSION);\r
+       strcat(fname,"hb1");\r
 \r
        if ((handle = open(fname,\r
                 O_RDONLY | O_BINARY, S_IREAD)) == -1)\r
@@ -1056,7 +1056,7 @@ void CAL_SetupGrFile (global_game_variables_t *gvar)
        MM_GetPtr (MEMPTRCONV gvar->ca.grstarts,(NUMCHUNKS+1)*FILEPOSSIZE, gvar);\r
 \r
        strcpy(fname,GHEADNAME);\r
-       strcat(fname,EXTENSION);\r
+       strcat(fname,"hb1");\r
 \r
        if ((handle = open(fname,\r
                 O_RDONLY | O_BINARY, S_IREAD)) == -1)\r
@@ -1073,7 +1073,7 @@ void CAL_SetupGrFile (global_game_variables_t *gvar)
 // Open the graphics file, leaving it open until the game is finished\r
 //\r
        strcpy(fname,GFILENAME);\r
-       strcat(fname,EXTENSION);\r
+       strcat(fname,"hb1");\r
 \r
        gvar->ca.file.grhandle = open(fname, O_RDONLY | O_BINARY);\r
        if (gvar->ca.file.grhandle == -1)\r
index 1d6bd4cbc5da6ab9c19af8e02954ab6cb0b70760..f7f5d524fcbab26ded2047f2f992062447ceccf5 100755 (executable)
@@ -70,48 +70,23 @@ HC_LargestFreeBlock(size_t* Size)
 #endif\r
 \r
        s0 = ~(size_t)0 ^ (~(size_t)0 >> 1);\r
-#ifdef __BORLANDC__\r
-       while (s0 && (p = malloc(s0)) == NULL)\r
-#endif\r
-#ifdef __WATCOMC__\r
        while (s0 && (p = _nmalloc(s0)) == NULL)\r
-#endif\r
                s0 >>= 1;\r
 \r
        if (p)\r
-#ifdef __BORLANDC__\r
-               free(p);\r
-#endif\r
-#ifdef __WATCOMC__\r
                _nfree(p);\r
-#endif\r
 \r
        s1 = s0 >> 1;\r
        while (s1)\r
        {\r
-#ifdef __BORLANDC__\r
-               if ((p = malloc(s0 + s1)) != NULL)\r
-#endif\r
-#ifdef __WATCOMC__\r
                if ((p = _nmalloc(s0 + s1)) != NULL)\r
-#endif\r
                {\r
                        s0 += s1;\r
-#ifdef __BORLANDC__\r
-                       free(p);\r
-#endif\r
-#ifdef __WATCOMC__\r
                        _nfree(p);\r
-#endif\r
                }\r
        s1 >>= 1;\r
        }\r
-#ifdef __BORLANDC__\r
-       while (s0 && (p = malloc(s0)) == NULL)\r
-#endif\r
-#ifdef __WATCOMC__\r
        while (s0 && (p = _nmalloc(s0)) == NULL)\r
-#endif\r
                s0 ^= s0 & -s0;\r
 \r
        *Size = s0;\r
@@ -131,12 +106,7 @@ size_t HC_coreleft(void)
                if (largest < sizeof(void __near*))\r
                {\r
                        if (p != NULL)\r
-#ifdef __BORLANDC__\r
-                       free(p);\r
-#endif\r
-#ifdef __WATCOMC__\r
                        _nfree(p);\r
-#endif\r
                        break;\r
                }\r
                *(void __near* __near*)p = NULL;\r
@@ -152,12 +122,7 @@ size_t HC_coreleft(void)
        while (pFirst != NULL)\r
        {\r
                void __near* p = *(void __near* __near*)pFirst;\r
-#ifdef __BORLANDC__\r
-               free(pFirst);\r
-#endif\r
-#ifdef __WATCOMC__\r
                _nfree(pFirst);\r
-#endif\r
                pFirst = p;\r
        }\r
        return total;\r
@@ -228,7 +193,7 @@ unsigned long HC_farcoreleft(void)
        return total;\r
 }\r
 \r
-#ifdef __WATCOMC__\r
+//==#ifdef __WATCOMC__\r
 /*void huge* LargestHugeFreeBlock(size_t* Size)\r
 {\r
        size_t s0, s1;\r
@@ -364,8 +329,8 @@ size_t _basedcoreleft(void)
                pFirst = p;\r
        }\r
        return total;\r
-}*/\r
-#if 0\r
+}\r
+\r
 size_t HC_GetFreeSize(void)\r
 {\r
        struct _heapinfo h_info;\r
@@ -380,13 +345,34 @@ size_t HC_GetFreeSize(void)
                if((h_info._useflag == _USEDENTRY ? "USED" : "FREE")=="USED") h_used += h_info._size;\r
                h_total += h_info._size;\r
        }\r
-       HCL_heapstat0(heap_status);\r
+       HCL_heapstat(heap_status);\r
        return h_free;\r
 }\r
-#endif\r
+*/\r
+\r
+void HCL_HeapWalking (struct _heapinfo *h_info, hc_use_t *hu, unsigned nearfarswitch)\r
+{\r
+       hu->h_free=0; hu->h_total=0; hu->h_used=0;\r
+\r
+       h_info->_pentry = NULL;\r
+       for(;;) {\r
+               if(nearfarswitch==0) hu->heap_status = _nheapwalk( h_info );\r
+               else if(nearfarswitch==1) hu->heap_status = _fheapwalk( h_info );\r
+               if( hu->heap_status != _HEAPOK ) break;\r
+               if((h_info->_useflag == _USEDENTRY ? "USED" : "FREE")=="FREE") hu->h_free += h_info->_size;\r
+               if((h_info->_useflag == _USEDENTRY ? "USED" : "FREE")=="USED") hu->h_used += h_info->_size;\r
+               hu->h_total += h_info->_size;\r
+       }\r
+       HCL_heapstat(hu->heap_status);\r
+}\r
 \r
 unsigned long HC_GetFarFreeSize(void)\r
 {\r
+       struct _heapinfo h_info;\r
+       hc_use_t hu;\r
+       HCL_HeapWalking (&h_info, &hu, 1);\r
+       return hu.h_free;\r
+#if 0\r
        struct _heapinfo fh_info;\r
        int heap_status;\r
        unsigned long fh_free=0, fh_total=0, fh_used=0;\r
@@ -399,12 +385,18 @@ unsigned long HC_GetFarFreeSize(void)
                if((fh_info._useflag == _USEDENTRY ? "USED" : "FREE")=="USED") fh_used += fh_info._size;\r
                fh_total += fh_info._size;\r
        }\r
-       HCL_heapstat0(heap_status);\r
+       HCL_heapstat(heap_status);\r
        return fh_free;\r
+#endif\r
 }\r
 \r
 size_t HC_GetNearFreeSize(void)\r
 {\r
+       struct _heapinfo h_info;\r
+       hc_use_t hu;\r
+       HCL_HeapWalking (&h_info, &hu, 0);\r
+       return hu.h_free;\r
+#if 0\r
        struct _heapinfo nh_info;\r
        int heap_status;\r
        size_t nh_free=0, nh_total=0, nh_used=0;\r
@@ -417,8 +409,9 @@ size_t HC_GetNearFreeSize(void)
                if((nh_info._useflag == _USEDENTRY ? "USED" : "FREE")=="USED") nh_used += nh_info._size;\r
                nh_total += nh_info._size;\r
        }\r
-       HCL_heapstat0(heap_status);\r
+       HCL_heapstat(heap_status);\r
        return nh_free;\r
+#endif\r
 }\r
 \r
 void HC_heapdump(global_game_variables_t *gvar)\r
@@ -446,7 +439,7 @@ void HC_heapdump(global_game_variables_t *gvar)
                h_total += h_info._size;\r
                write(gvar->handle.heaphandle,scratch,strlen(scratch));\r
        }\r
-       HCL_heapstat(gvar, heap_status, &scratch);\r
+       HCL_heapstatLogWrite(gvar, heap_status, scratch);\r
 #endif\r
 \r
        //near\r
@@ -468,7 +461,7 @@ nh_info._pentry, nh_info._size );*/
                nh_total += nh_info._size;\r
                write(gvar->handle.heaphandle,scratch,strlen(scratch));\r
        }\r
-       HCL_heapstat(gvar, heap_status, &scratch);\r
+       HCL_heapstatLogWrite(gvar, heap_status, scratch);\r
 \r
        //far\r
        strcpy(scratch,"\n      == far ==\n\n");\r
@@ -489,14 +482,16 @@ fh_info._pentry, fh_info._size );*/
                fh_total += fh_info._size;\r
                write(gvar->handle.heaphandle,scratch,strlen(scratch));\r
        }\r
-       HCL_heapstat(gvar, heap_status, &scratch);\r
+       HCL_heapstatLogWrite(gvar, heap_status, scratch);\r
 \r
        strcpy(scratch,"\n");\r
+#ifdef __WATCOMC__\r
        strcat(scratch,kittengets(2,0,"Memory Type         Total      Used       Free\n"));\r
+#endif\r
        strcat(scratch,"----------------  --------   --------   --------\n");\r
 //     printmeminfoline(&scratch, "Default", h_total, h_used, h_free);\r
-       printmeminfoline(&scratch, "Near", nh_total, nh_used, nh_free);\r
-       printmeminfoline(&scratch, "Far", fh_total, fh_used, fh_free);\r
+       printmeminfoline(scratch, "Near", nh_total, nh_used, nh_free);\r
+       printmeminfoline(scratch, "Far", fh_total, fh_used, fh_free);\r
        strcat(scratch,"----------------  --------   --------   --------\n");\r
        strcat(scratch,"HC_coreleft = ");                       ultoa((dword)HC_coreleft(),str,10);                     strcat(scratch,str);    strcat(scratch,"\n");\r
        strcat(scratch,"HC_farcoreleft = ");                    ultoa((dword)HC_farcoreleft(),str,10);          strcat(scratch,str);    strcat(scratch,"\n");\r
@@ -511,7 +506,7 @@ fh_info._pentry, fh_info._size );*/
        HC_CloseDebug(gvar);\r
 }\r
 \r
-void HCL_heapstat(global_game_variables_t *gvar, int heap_status, byte *str)\r
+void HCL_heapstatLogWrite(global_game_variables_t *gvar, int heap_status, byte *str)\r
 {\r
        switch( heap_status ) {\r
                case _HEAPEND:\r
@@ -524,16 +519,18 @@ void HCL_heapstat(global_game_variables_t *gvar, int heap_status, byte *str)
                case _HEAPBADBEGIN:\r
                        strcpy((str),"ERROR - heap is damaged\n");\r
                break;\r
+#ifdef __WATCOMC__\r
                case _HEAPBADPTR:\r
                        strcpy((str),"ERROR - bad pointer to heap\n");\r
                break;\r
+#endif\r
                case _HEAPBADNODE:\r
                        strcpy((str),"ERROR - bad node in heap\n");\r
        }\r
        write(gvar->handle.heaphandle,(str),strlen((str)));\r
 }\r
 \r
-void HCL_heapstat0(int heap_status)\r
+void HCL_heapstat(int heap_status)\r
 {\r
        switch( heap_status ) {\r
                case _HEAPEND:\r
@@ -545,14 +542,18 @@ void HCL_heapstat0(int heap_status)
                case _HEAPBADBEGIN:\r
                        printf("ERROR - heap is damaged\n");\r
                break;\r
+#ifdef __WATCOMC__\r
                case _HEAPBADPTR:\r
                        printf("ERROR - bad pointer to heap\n");\r
                break;\r
+#endif\r
                case _HEAPBADNODE:\r
                        printf("ERROR - bad node in heap\n");\r
        }\r
 }\r
 \r
+//++\r
+#ifdef __WATCOMC__\r
 unsigned long farcoreleft()\r
 {\r
 //---- _fheapgrow();\r
index d9f18c83572f267744c01b4cae6121154eb49cba..698e00937d3bf984ca3fcd58dd1e8012559936ae 100755 (executable)
 \r
 #include "src/lib/16_head.h"\r
 \r
+typedef struct heapusage\r
+{\r
+       unsigned long h_free, h_total, h_used;\r
+       int heap_status;\r
+} hc_use_t;\r
+\r
+#ifdef __BORLANDC__\r
+#if 0\r
+/*typedef */struct _heapinfo\r
+{\r
+       int       _far *_pentry;        //- heap entry pointer\r
+       size_t _size;           //- size of heap entry\r
+       int       _useflag;             //- entry in use return value\r
+};// _heapinfo_t;\r
+#endif\r
+\r
+#define _HEAPBADBEGIN   2       /* heap header is corrupted */\r
+#define _HEAPBADNODE    3       /* heap entry is corrupted */\r
+#define _HEAPBADPTR     5       /* invalid heap entry pointer (_heapwalk) */\r
+#endif\r
+\r
 //long HC_Newfarcoreleft();\r
 #ifdef __BORLANDC__\r
 void * HC_LargestFreeBlock(size_t* Size);\r
@@ -43,8 +64,8 @@ unsigned long HC_GetFarFreeSize(void);
 size_t HC_GetNearFreeSize(void);\r
 \r
 void HC_heapdump(global_game_variables_t *gvar);\r
-void HCL_heapstat(global_game_variables_t *gvar, int heap_status, byte *str);\r
-void HCL_heapstat0(int heap_status);\r
+void HCL_heapstatLogWrite(global_game_variables_t *gvar, int heap_status, byte *str);\r
+void HCL_heapstat(int heap_status);\r
 \r
 void HC_OpenDebug(global_game_variables_t *gvar);\r
 void HC_CloseDebug(global_game_variables_t *gvar);\r
index 333c368658baf31f79673695c88fe702b73f26bd..dcb8d86f790532907095152de6f0c3d3bc926484 100755 (executable)
@@ -884,7 +884,7 @@ void MM_Startup (global_game_variables_t *gvar)
 // get all available near conventional memory segments\r
 //\r
        length=coreleft();\r
-       start = (void far *)(gvar->mm.nearheap = nearmalloc(length));\r
+       start = (void far *)(gvar->mm.nearheap = _nmalloc(length));\r
 \r
        length -= 16-(FP_OFF(start)&15);\r
        length -= SAVENEARHEAP;\r
@@ -976,12 +976,7 @@ void MM_Shutdown (global_game_variables_t *gvar)
                return;\r
 \r
        _ffree(gvar->mm.farheap);//     printf("                far freed\n");\r
-#ifdef __WATCOMC__\r
        _nfree(gvar->mm.nearheap);//    printf("                near freed\n");\r
-#endif\r
-#ifdef __BORLANDC__\r
-       free(gvar->mm.nearheap);//      printf("                near freed\n");\r
-#endif\r
 #ifndef __16_PM__\r
 #if 0\r
 #ifdef __DEBUG__\r
@@ -1477,7 +1472,9 @@ void MM_ShowMemory (global_game_variables_t *gvar)
                strcat (scratch,"\n");\r
                write(gvar->handle.debughandle,scratch,strlen(scratch));\r
                write(gvar->handle.debughandle,scratch0,strlen(scratch0));\r
-//fprintf(stdout, "%s", scratch);\r
+//0000fprintf(stdout, "\n[%s]", scratch);\r
+//0000fprintf(stdout, "[\n%s\n]", scratch0);\r
+//0000fprintf(stdout, "[%u]\n", q);\r
 \r
                scan = scan->next;\r
                q++;\r
@@ -1541,12 +1538,12 @@ void MM_ShowMemoryDetail (unsigned x, unsigned y, unsigned w, unsigned q, sdword
                boolean                 done;\r
                ScanCode                scancode;\r
                int xpos,ypos;\r
-               word qq, ccolor = 3;\r
+               word ccolor = 3;\r
                IN_Ack(gvar);\r
 //             VL_ClearVideo (8);\r
-               for (qq = 0,done = false;!done;)\r
+               for (q = 0,done = false;!done;)\r
                {\r
-                       if(scaninfo[qq].scan->attributes & PURGEBITS)\r
+                       if(scaninfo[q].scan->attributes & PURGEBITS)\r
                        {\r
                                ccolor = 6;             // dark purple = purgable\r
                                strcpy(scratch1, AAMAGENTA);            // dark purple = purgable\r
@@ -1556,13 +1553,13 @@ void MM_ShowMemoryDetail (unsigned x, unsigned y, unsigned w, unsigned q, sdword
                                strcpy(scratch1, AABLUE);               // medium blue = non purgable\r
                                //printf("%s", AABLUE);\r
                        }\r
-                       if(scaninfo[qq].scan->attributes & LOCKBIT)\r
+                       if(scaninfo[q].scan->attributes & LOCKBIT)\r
                        {\r
                                ccolor = 1;             // red = locked\r
                                strcpy(scratch1, AARED);                // red = locked\r
                                //printf("%s", AARED);\r
                        }\r
-                       end = scaninfo[qq].scan->length-1;\r
+                       end = scaninfo[q].scan->length-1;\r
 /*typedef struct mmblockstruct{\r
        word    start,length;\r
        unsigned        attributes;\r
@@ -1579,19 +1576,19 @@ void MM_ShowMemoryDetail (unsigned x, unsigned y, unsigned w, unsigned q, sdword
                        }else\r
 #endif\r
                                clrscr();\r
-                       sprintf(global_temp_status_text, "block #%04u", qq); MMSMPRINTMEMINFO\r
-//                     sprintf(global_temp_status_text, "%Fp", scaninfo[qq].scan->useptr); MMSMPRINTMEMINFO\r
-                       sprintf(global_temp_status_text, "start:  %04x", (unsigned)scaninfo[qq].scan->start); MMSMPRINTMEMINFO\r
-                       sprintf(global_temp_status_text, "useptr: %04x", (unsigned)scaninfo[qq].scan->useptr); MMSMPRINTMEMINFO\r
-                       sprintf(global_temp_status_text, "size: %05u", (unsigned)scaninfo[qq].scan->length); MMSMPRINTMEMINFO\r
-                       if (scaninfo[qq].scan->next && scaninfo[qq].scan->next->start > end+1)\r
+                       sprintf(global_temp_status_text, "block #%04u", q); MMSMPRINTMEMINFO\r
+//                     sprintf(global_temp_status_text, "%Fp", scaninfo[q].scan->useptr); MMSMPRINTMEMINFO\r
+                       sprintf(global_temp_status_text, "start:  %04x", (unsigned)scaninfo[q].scan->start); MMSMPRINTMEMINFO\r
+                       sprintf(global_temp_status_text, "useptr: %04x", (unsigned)scaninfo[q].scan->useptr); MMSMPRINTMEMINFO\r
+                       sprintf(global_temp_status_text, "size: %05u", (unsigned)scaninfo[q].scan->length); MMSMPRINTMEMINFO\r
+                       if (scaninfo[q].scan->next && scaninfo[q].scan->next->start > end+1)\r
                        {\r
-                               sprintf(global_temp_status_text, "free: %05u", (unsigned)(scaninfo[qq].scan->next->start-scaninfo[qq].scan->start)); MMSMPRINTMEMINFO\r
+                               sprintf(global_temp_status_text, "free: %05u", (unsigned)(scaninfo[q].scan->next->start-scaninfo[q].scan->start)); MMSMPRINTMEMINFO\r
                        }\r
                        if(gvar->video.VL_Started)\r
                        {\r
-                               y = ypos;//scaninfo[qq].scan->start/width;\r
-                               x = xpos;//scaninfo[qq].scan->start%width;\r
+                               y = ypos;//scaninfo[q].scan->start/width;\r
+                               x = xpos;//scaninfo[q].scan->start%width;\r
                                VW_Hlin(x,x+end,y,ccolor,gvar);\r
                                VL_Plot(x,y,5,gvar);\r
                        }\r
@@ -1599,8 +1596,8 @@ void MM_ShowMemoryDetail (unsigned x, unsigned y, unsigned w, unsigned q, sdword
                        {\r
                                printf("%s", scratch1);\r
                                printf("%s", AAGREY); printf("_");\r
-                               if(scaninfo[qq].scan->length<64000)\r
-                               for(w=(scaninfo[qq].scan->start)/80;w<=end/80;w++)\r
+                               if(scaninfo[q].scan->length<64000)\r
+                               for(w=(scaninfo[q].scan->start)/80;w<=end/80;w++)\r
                                {\r
                                        //strcat(scratch1, "+");\r
                                        printf("+");\r
@@ -1608,18 +1605,18 @@ void MM_ShowMemoryDetail (unsigned x, unsigned y, unsigned w, unsigned q, sdword
                        }\r
 \r
 \r
-                               if (scaninfo[qq].scan->next && scaninfo[qq].scan->next->start > end+1) if(!gvar->video.VL_Started)\r
+                               if (scaninfo[q].scan->next && scaninfo[q].scan->next->start > end+1) if(!gvar->video.VL_Started)\r
                                {\r
                                        //strcat(scratch1, AARESET);\r
                                        printf("%s", AARESET);\r
                                        //strcat(scratch1,AAGREEN);\r
                                        printf("%s", AAGREEN);\r
-                                       for(w=(end+1)/80;w<=((scaninfo[qq].scan->next->start-scaninfo[qq].scan->start)/80);w++)\r
+                                       for(w=(end+1)/80;w<=((scaninfo[q].scan->next->start-scaninfo[q].scan->start)/80);w++)\r
                                        {\r
                                                //strcat(scratch1,"0");\r
                                                printf("0");\r
                                        }\r
-                               }else VW_Hlin(x+end+1,x+(scaninfo[qq].scan->next->start-scaninfo[qq].scan->start),y,3,gvar);    // black = free//now green\r
+                               }else VW_Hlin(x+end+1,x+(scaninfo[q].scan->next->start-scaninfo[q].scan->start),y,3,gvar);      // black = free//now green\r
 \r
 \r
                        if(gvar->video.VL_Started)\r
@@ -1634,27 +1631,28 @@ void MM_ShowMemoryDetail (unsigned x, unsigned y, unsigned w, unsigned q, sdword
                                printf("%s", AARESET);\r
                                printf("\n");\r
                        }\r
+//0000                 fprintf(stdout, "q=%u   maxq=%u\n", q, maxq);\r
                        while (!(scancode = gvar->in.inst->LastScan)){}\r
 \r
                        IN_ClearKey(scancode);\r
                        switch (scancode)\r
                        {\r
                                case sc_LeftArrow:\r
-                                       if(qq>0) qq--;\r
-                                       else    qq = maxq;\r
+                                       if(q>0) q--;\r
+                                       else    q = maxq;\r
                                break;\r
                                case sc_RightArrow:\r
-                                       if(qq<maxq) qq++;\r
-                                       else qq = 0;\r
+                                       if(q<maxq) q++;\r
+                                       else q = 0;\r
                                break;\r
-/*                             case sc_UpArrow:\r
-                                       if(qq>0) qq-=100;\r
-                                       else    qq = maxq;\r
+                               case sc_UpArrow:\r
+                                       if(q>10) q-=10;\r
+                                       else    q = maxq;\r
                                break;\r
                                case sc_DownArrow:\r
-                                       if(qq<maxq) qq+=100;\r
-                                       else qq = 0;\r
-                               break;*/\r
+                                       if(q<maxq+10) q+=10;\r
+                                       else q = 0;\r
+                               break;\r
                                case sc_Escape:\r
                                        done = true;\r
                                break;\r
@@ -1681,12 +1679,7 @@ void MM_DumpData (global_game_variables_t *gvar)
        char    lock,purge;\r
        FILE    *dumpfile;\r
 \r
-#ifdef __WATCOMC__\r
        _nfree(gvar->mm.nearheap);\r
-#endif\r
-#ifdef __BORLANDC__\r
-       free(gvar->mm.nearheap);\r
-#endif\r
        dumpfile = fopen (gvar->handle.datadumpfilename, "w");\r
        if (!dumpfile)\r
                Quit (gvar, "MM_DumpData: Couldn't open MMDUMP.16!\n");\r
index 2b573262be2d6210fde3b9b8c024d0cbc0ce0081..de709bdfc0789096d692f0c06f8cf93544e5da3c 100755 (executable)
@@ -70,8 +70,17 @@ typedef void _seg * memptr;
 //#define OBTPTRANDPERCONV     &\r
 //#define SDTPTRANDPERCONV     &\r
 \r
-#define nearmalloc malloc\r
-#define nearfree free\r
+#define _nmalloc malloc\r
+#define _nfree free\r
+\r
+#define _nheapwalk heapwalk\r
+#define _fheapwalk farheapwalk\r
+\r
+//heapinfo vars\r
+#define _heapinfo heapinfo\r
+#define _pentry        ptr\r
+#define _size  size\r
+#define _useflag       in_use\r
 #endif\r
 //\r
 \r