]> 4ch.mooo.com Git - 16.git/commitdiff
NULL pageframe detection added for EMM386 memory manager failing to assign one and...
authorsparky4 <sparky4@cock.li>
Wed, 1 Mar 2017 03:27:15 +0000 (21:27 -0600)
committersparky4 <sparky4@cock.li>
Wed, 1 Mar 2017 03:27:15 +0000 (21:27 -0600)
DEBUG.16W
HEAP.16W
MMDUMP.16W
src/lib/16_mm.c
src/lib/16_pm.c

index ce787d0785c5621c684251d17b86387d4e90f85a..b95cd967beaf8bb5a08292db9ebb85096a37e86a 100755 (executable)
--- a/DEBUG.16W
+++ b/DEBUG.16W
-\e[0mSeg:0      Size:9022       Owner:0x0\r
+\e[0mSeg:0      Size:9027       Owner:0x0\r
 \e[41;31m+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m\e[42;32m0000\r
-\e[0m\e[0mSeg:242e       Size:39 Owner:0x0\r
+\e[0m\e[0mSeg:2434       Size:39 Owner:0x0\r
 \e[41;31m++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2455       Size:256        Owner:0x1dc4\r
+\e[0m\e[0mSeg:245b       Size:256        Owner:0x1db4\r
 \e[44;34m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2555       Size:256        Owner:0x1bb6\r
+\e[0m\e[0mSeg:255b       Size:256        Owner:0x1ba6\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2655       Size:256        Owner:0x1bb8\r
+\e[0m\e[0mSeg:265b       Size:256        Owner:0x1ba8\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2755       Size:256        Owner:0x1bba\r
+\e[0m\e[0mSeg:275b       Size:256        Owner:0x1baa\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2855       Size:256        Owner:0x1bbc\r
+\e[0m\e[0mSeg:285b       Size:256        Owner:0x1bac\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2955       Size:256        Owner:0x1bbe\r
+\e[0m\e[0mSeg:295b       Size:256        Owner:0x1bae\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2a55       Size:256        Owner:0x1bc0\r
+\e[0m\e[0mSeg:2a5b       Size:256        Owner:0x1bb0\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2b55       Size:256        Owner:0x1bc2\r
+\e[0m\e[0mSeg:2b5b       Size:256        Owner:0x1bb2\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2c55       Size:256        Owner:0x1bc4\r
+\e[0m\e[0mSeg:2c5b       Size:256        Owner:0x1bb4\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2d55       Size:256        Owner:0x1bc6\r
+\e[0m\e[0mSeg:2d5b       Size:256        Owner:0x1bb6\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2e55       Size:256        Owner:0x1bc8\r
+\e[0m\e[0mSeg:2e5b       Size:256        Owner:0x1bb8\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2f55       Size:256        Owner:0x1bca\r
+\e[0m\e[0mSeg:2f5b       Size:256        Owner:0x1bba\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3055       Size:256        Owner:0x1bcc\r
+\e[0m\e[0mSeg:305b       Size:256        Owner:0x1bbc\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3155       Size:256        Owner:0x1bce\r
+\e[0m\e[0mSeg:315b       Size:256        Owner:0x1bbe\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3255       Size:256        Owner:0x1bd0\r
+\e[0m\e[0mSeg:325b       Size:256        Owner:0x1bc0\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3355       Size:256        Owner:0x1bd2\r
+\e[0m\e[0mSeg:335b       Size:256        Owner:0x1bc2\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3455       Size:256        Owner:0x1bd4\r
+\e[0m\e[0mSeg:345b       Size:256        Owner:0x1bc4\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3555       Size:256        Owner:0x1bd6\r
+\e[0m\e[0mSeg:355b       Size:256        Owner:0x1bc6\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3655       Size:256        Owner:0x1bd8\r
+\e[0m\e[0mSeg:365b       Size:256        Owner:0x1bc8\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3755       Size:256        Owner:0x1bda\r
+\e[0m\e[0mSeg:375b       Size:256        Owner:0x1bca\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3855       Size:256        Owner:0x1bdc\r
+\e[0m\e[0mSeg:385b       Size:256        Owner:0x1bcc\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3955       Size:256        Owner:0x1bde\r
+\e[0m\e[0mSeg:395b       Size:256        Owner:0x1bce\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3a55       Size:256        Owner:0x1be0\r
+\e[0m\e[0mSeg:3a5b       Size:256        Owner:0x1bd0\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3b55       Size:256        Owner:0x1be2\r
+\e[0m\e[0mSeg:3b5b       Size:256        Owner:0x1bd2\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3c55       Size:256        Owner:0x1be4\r
+\e[0m\e[0mSeg:3c5b       Size:256        Owner:0x1bd4\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3d55       Size:256        Owner:0x1be6\r
+\e[0m\e[0mSeg:3d5b       Size:256        Owner:0x1bd6\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3e55       Size:256        Owner:0x1be8\r
+\e[0m\e[0mSeg:3e5b       Size:256        Owner:0x1bd8\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3f55       Size:256        Owner:0x1bea\r
+\e[0m\e[0mSeg:3f5b       Size:256        Owner:0x1bda\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4055       Size:256        Owner:0x1bec\r
+\e[0m\e[0mSeg:405b       Size:256        Owner:0x1bdc\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4155       Size:256        Owner:0x1bee\r
+\e[0m\e[0mSeg:415b       Size:256        Owner:0x1bde\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4255       Size:256        Owner:0x1bf0\r
+\e[0m\e[0mSeg:425b       Size:256        Owner:0x1be0\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4355       Size:256        Owner:0x1bf2\r
+\e[0m\e[0mSeg:435b       Size:256        Owner:0x1be2\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4455       Size:256        Owner:0x1bf4\r
+\e[0m\e[0mSeg:445b       Size:256        Owner:0x1be4\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4555       Size:256        Owner:0x1bf6\r
+\e[0m\e[0mSeg:455b       Size:256        Owner:0x1be6\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4655       Size:256        Owner:0x1bf8\r
+\e[0m\e[0mSeg:465b       Size:256        Owner:0x1be8\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4755       Size:256        Owner:0x1bfa\r
+\e[0m\e[0mSeg:475b       Size:256        Owner:0x1bea\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4855       Size:256        Owner:0x1bfc\r
+\e[0m\e[0mSeg:485b       Size:256        Owner:0x1bec\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4955       Size:256        Owner:0x1bfe\r
+\e[0m\e[0mSeg:495b       Size:256        Owner:0x1bee\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4a55       Size:256        Owner:0x1c00\r
+\e[0m\e[0mSeg:4a5b       Size:256        Owner:0x1bf0\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4b55       Size:256        Owner:0x1c02\r
+\e[0m\e[0mSeg:4b5b       Size:256        Owner:0x1bf2\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4c55       Size:256        Owner:0x1c04\r
+\e[0m\e[0mSeg:4c5b       Size:256        Owner:0x1bf4\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4d55       Size:256        Owner:0x1c06\r
+\e[0m\e[0mSeg:4d5b       Size:256        Owner:0x1bf6\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4e55       Size:256        Owner:0x1c08\r
+\e[0m\e[0mSeg:4e5b       Size:256        Owner:0x1bf8\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4f55       Size:256        Owner:0x1c0a\r
+\e[0m\e[0mSeg:4f5b       Size:256        Owner:0x1bfa\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5055       Size:256        Owner:0x1c0c\r
+\e[0m\e[0mSeg:505b       Size:256        Owner:0x1bfc\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5155       Size:256        Owner:0x1c0e\r
+\e[0m\e[0mSeg:515b       Size:256        Owner:0x1bfe\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5255       Size:256        Owner:0x1c10\r
+\e[0m\e[0mSeg:525b       Size:256        Owner:0x1c00\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5355       Size:256        Owner:0x1c12\r
+\e[0m\e[0mSeg:535b       Size:256        Owner:0x1c02\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5455       Size:256        Owner:0x1c14\r
+\e[0m\e[0mSeg:545b       Size:256        Owner:0x1c04\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5555       Size:256        Owner:0x1c16\r
+\e[0m\e[0mSeg:555b       Size:256        Owner:0x1c06\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5655       Size:256        Owner:0x1c18\r
+\e[0m\e[0mSeg:565b       Size:256        Owner:0x1c08\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5755       Size:256        Owner:0x1c1a\r
+\e[0m\e[0mSeg:575b       Size:256        Owner:0x1c0a\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5855       Size:256        Owner:0x1c1c\r
+\e[0m\e[0mSeg:585b       Size:256        Owner:0x1c0c\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5955       Size:256        Owner:0x1c1e\r
+\e[0m\e[0mSeg:595b       Size:256        Owner:0x1c0e\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5a55       Size:256        Owner:0x1c20\r
+\e[0m\e[0mSeg:5a5b       Size:256        Owner:0x1c10\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5b55       Size:256        Owner:0x1c22\r
+\e[0m\e[0mSeg:5b5b       Size:256        Owner:0x1c12\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5c55       Size:256        Owner:0x1c24\r
+\e[0m\e[0mSeg:5c5b       Size:256        Owner:0x1c14\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5d55       Size:256        Owner:0x1c26\r
+\e[0m\e[0mSeg:5d5b       Size:256        Owner:0x1c16\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5e55       Size:256        Owner:0x1c28\r
+\e[0m\e[0mSeg:5e5b       Size:256        Owner:0x1c18\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5f55       Size:256        Owner:0x1c2a\r
+\e[0m\e[0mSeg:5f5b       Size:256        Owner:0x1c1a\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6055       Size:256        Owner:0x1c2c\r
+\e[0m\e[0mSeg:605b       Size:256        Owner:0x1c1c\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6155       Size:256        Owner:0x1c2e\r
+\e[0m\e[0mSeg:615b       Size:256        Owner:0x1c1e\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6255       Size:256        Owner:0x1c30\r
+\e[0m\e[0mSeg:625b       Size:256        Owner:0x1c20\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6355       Size:256        Owner:0x1c32\r
+\e[0m\e[0mSeg:635b       Size:256        Owner:0x1c22\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6455       Size:256        Owner:0x1c34\r
+\e[0m\e[0mSeg:645b       Size:256        Owner:0x1c24\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6555       Size:256        Owner:0x1c36\r
+\e[0m\e[0mSeg:655b       Size:256        Owner:0x1c26\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6655       Size:256        Owner:0x1c38\r
+\e[0m\e[0mSeg:665b       Size:256        Owner:0x1c28\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6755       Size:256        Owner:0x1c3a\r
+\e[0m\e[0mSeg:675b       Size:256        Owner:0x1c2a\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6855       Size:256        Owner:0x1c3c\r
+\e[0m\e[0mSeg:685b       Size:256        Owner:0x1c2c\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6955       Size:256        Owner:0x1c3e\r
+\e[0m\e[0mSeg:695b       Size:256        Owner:0x1c2e\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6a55       Size:256        Owner:0x1c40\r
+\e[0m\e[0mSeg:6a5b       Size:256        Owner:0x1c30\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6b55       Size:256        Owner:0x1c42\r
+\e[0m\e[0mSeg:6b5b       Size:256        Owner:0x1c32\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6c55       Size:256        Owner:0x1c44\r
+\e[0m\e[0mSeg:6c5b       Size:256        Owner:0x1c34\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6d55       Size:256        Owner:0x1c46\r
+\e[0m\e[0mSeg:6d5b       Size:256        Owner:0x1c36\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6e55       Size:256        Owner:0x1c48\r
+\e[0m\e[0mSeg:6e5b       Size:256        Owner:0x1c38\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6f55       Size:256        Owner:0x1c4a\r
+\e[0m\e[0mSeg:6f5b       Size:256        Owner:0x1c3a\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7055       Size:256        Owner:0x1c4c\r
+\e[0m\e[0mSeg:705b       Size:256        Owner:0x1c3c\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7155       Size:256        Owner:0x1c4e\r
+\e[0m\e[0mSeg:715b       Size:256        Owner:0x1c3e\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7255       Size:256        Owner:0x1c50\r
+\e[0m\e[0mSeg:725b       Size:256        Owner:0x1c40\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7355       Size:256        Owner:0x1c52\r
+\e[0m\e[0mSeg:735b       Size:256        Owner:0x1c42\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7455       Size:256        Owner:0x1c54\r
+\e[0m\e[0mSeg:745b       Size:256        Owner:0x1c44\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7555       Size:256        Owner:0x1c56\r
+\e[0m\e[0mSeg:755b       Size:256        Owner:0x1c46\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7655       Size:256        Owner:0x1c58\r
+\e[0m\e[0mSeg:765b       Size:256        Owner:0x1c48\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7755       Size:256        Owner:0x1c5a\r
+\e[0m\e[0mSeg:775b       Size:256        Owner:0x1c4a\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7855       Size:256        Owner:0x1c5c\r
+\e[0m\e[0mSeg:785b       Size:256        Owner:0x1c4c\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7955       Size:256        Owner:0x1c5e\r
+\e[0m\e[0mSeg:795b       Size:256        Owner:0x1c4e\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7a55       Size:256        Owner:0x1c60\r
+\e[0m\e[0mSeg:7a5b       Size:256        Owner:0x1c50\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7b55       Size:256        Owner:0x1c62\r
+\e[0m\e[0mSeg:7b5b       Size:256        Owner:0x1c52\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7c55       Size:256        Owner:0x1c64\r
+\e[0m\e[0mSeg:7c5b       Size:256        Owner:0x1c54\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7d55       Size:256        Owner:0x1c66\r
+\e[0m\e[0mSeg:7d5b       Size:256        Owner:0x1c56\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7e55       Size:256        Owner:0x1c68\r
+\e[0m\e[0mSeg:7e5b       Size:256        Owner:0x1c58\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7f55       Size:256        Owner:0x1c6a\r
+\e[0m\e[0mSeg:7f5b       Size:256        Owner:0x1c5a\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8055       Size:256        Owner:0x1c6c\r
+\e[0m\e[0mSeg:805b       Size:256        Owner:0x1c5c\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8155       Size:256        Owner:0x1c6e\r
+\e[0m\e[0mSeg:815b       Size:256        Owner:0x1c5e\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8255       Size:256        Owner:0x1c70\r
+\e[0m\e[0mSeg:825b       Size:256        Owner:0x1c60\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8355       Size:256        Owner:0x1c72\r
+\e[0m\e[0mSeg:835b       Size:256        Owner:0x1c62\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8455       Size:256        Owner:0x1c74\r
+\e[0m\e[0mSeg:845b       Size:256        Owner:0x1c64\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8555       Size:256        Owner:0x1c76\r
+\e[0m\e[0mSeg:855b       Size:256        Owner:0x1c66\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8655       Size:256        Owner:0x1c78\r
+\e[0m\e[0mSeg:865b       Size:256        Owner:0x1c68\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8755       Size:256        Owner:0x1c7a\r
+\e[0m\e[0mSeg:875b       Size:256        Owner:0x1c6a\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8855       Size:256        Owner:0x1c7c\r
+\e[0m\e[0mSeg:885b       Size:256        Owner:0x1c6c\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8955       Size:273        Owner:0x1b88\r
+\e[0m\e[0mSeg:895b       Size:273        Owner:0x1b78\r
 \e[44;34m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:9d94       Size:25195      Owner:0x0\r
+\e[0m\e[0mSeg:9d9a       Size:25189      Owner:0x0\r
 \e[41;31m++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m
\ No newline at end of file
index 6f9a21a60de6619c5ca6730a082d6f578cefd5fb..e80b7862062617a32cc740a10c10d32f7778dfef 100755 (executable)
--- a/HEAP.16W
+++ b/HEAP.16W
@@ -1,47 +1,45 @@
 \r
        == default ==\r
 \r
-  USED block at 24500016 of size 26\r
-  USED block at 24500030 of size 26\r
-  FREE block at 2450004a of size 38914\r
-  USED block at 2450984c of size 136\r
-  USED block at 245098d4 of size 20\r
-  FREE block at 245098e8 of size 7972\r
+  USED block at 24560016 of size 26\r
+  USED block at 24560030 of size 26\r
+  FREE block at 2456004a of size 38914\r
+  USED block at 2456984c of size 136\r
+  USED block at 245698d4 of size 20\r
+  FREE block at 245698e8 of size 7972\r
 OK - end of heap\r
 \r
        == near ==\r
 \r
-  USED block at 144fecf6 of size 12\r
-  USED block at 144fed02 of size 332\r
-  USED block at 144fee4e of size 52\r
-  USED block at 144fee82 of size 20\r
-  USED block at 144fee96 of size 20\r
-  USED block at 144feeaa of size 20\r
-  USED block at 144feebe of size 20\r
-  USED block at 144feed2 of size 20\r
-  USED block at 144feee6 of size 4374\r
+  USED block at 1455ece6 of size 12\r
+  USED block at 1455ecf2 of size 332\r
+  USED block at 1455ee3e of size 52\r
+  USED block at 1455ee72 of size 20\r
+  USED block at 1455ee86 of size 20\r
+  USED block at 1455ee9a of size 20\r
+  USED block at 1455eeae of size 20\r
+  USED block at 1455eec2 of size 20\r
+  USED block at 1455eed6 of size 4390\r
 OK - end of heap\r
 \r
        == far ==\r
 \r
-  USED block at 24500016 of size 26\r
-  USED block at 24500030 of size 26\r
-  USED block at 2450004a of size 38914\r
-  USED block at 2450984c of size 136\r
-  USED block at 245098d4 of size 20\r
-  USED block at 245098e8 of size 7972\r
+  USED block at 24560016 of size 26\r
+  USED block at 24560030 of size 26\r
+  USED block at 2456004a of size 38914\r
+  USED block at 2456984c of size 136\r
+  USED block at 245698d4 of size 20\r
+  USED block at 245698e8 of size 7972\r
 OK - end of heap\r
 \r
 Memory Type         Total      Used       Free\r
 ----------------  --------   --------   --------\r
-Default                   47094        208       46886\r
-Near              4870         496       4374\r
-Far               47094        208       46886\r
-----------------  --------   --------   --------\r
-HC_coreleft = 4372\r
+Default                   47094Near               4886 496       4390\r
+Far               47094----------------  --------   --------   --------\r
+HC_coreleft = 4388\r
 HC_farcoreleft = 458752\r
 HC_GetFreeSize = 46886\r
-HC_GetNearFreeSize = 4374\r
+HC_GetNearFreeSize = 4390\r
 HC_GetFarFreeSize = 46886\r
-memavl = 4372\r
+memavl = 4388\r
 stackavail = 31606\r
index 5b3efb037b02f9061a5e44b80436f9414d4eda4e..58be92ad3f58bfffafe267b54965e950d6186fcc 100755 (executable)
Binary files a/MMDUMP.16W and b/MMDUMP.16W differ
index 67059b39c245d74d1123270f8e2bb4f019b87adf..6453354917350979d831df3a1c270be777390027 100755 (executable)
@@ -90,17 +90,18 @@ boolean MML_CheckForEMS(void)
 {
        boolean emmcfems = false;
        word            EMSPageFrame = 0;
+       byte    err=0, str[64];
        static char     emmname[] = "EMMXXXX0"; //fix by andrius4669
        __asm {
                mov     dx,OFFSET emmname       //fix by andrius4669
                mov     ax,0x3d00
-               int     0x21            // try to open EMMXXXX0 device
+               int     EMM_INT         // try to open EMMXXXX0 device
                jc      error
 
                mov     bx,ax
                mov     ax,0x4400
 
-               int     0x21            // get device info
+               int     EMM_INT         // get device info
                jc      error
 
                and     dx,0x80
@@ -108,13 +109,13 @@ boolean MML_CheckForEMS(void)
 
                mov     ax,0x4407
 
-               int     0x21            // get status
+               int     EMM_INT         // get status
                jc      error
                or      al,al
                jz      error
 
                mov     ah,0x3e
-               int     0x21            // close handle
+               int     EMM_INT         // close handle
                jc      error
 
                //
@@ -141,6 +142,7 @@ boolean MML_CheckForEMS(void)
                //
                // EMS is bad
                //
+               mov     err,ah
                mov     emmcfems,0
 #ifdef __BORLANDC__
        }
@@ -159,7 +161,13 @@ boolean MML_CheckForEMS(void)
 #if defined(__DEBUG_PM__) || defined(__DEBUG_MM__)
                printf("MML_CheckForEMS: EMS error No Pageframe!\nAddress detected to be %04x\n", EMSPageFrame);
 #endif
+       }else   if(!emmcfems)// if there is an error and page frame is not 0000
+       {
+               strcpy(str,"MML_CheckForEMS: EMS error ");
+               MM_EMSerr(str, err);
+               printf("%s\n",str);
        }
+
        return(emmcfems);
 }
 
index f4e150822cfcbd2de679684a4a82fa23705a2315..2983499bde32abf03708b97500403c006d2eec48 100755 (executable)
@@ -153,6 +153,9 @@ PML_MapEMS(word logical, byte physical, global_game_variables_t *gvar)
 //             If there's more than our minimum (2 pages) available, allocate it (up\r
 //                     to the maximum we need)\r
 //\r
+//     Please call MML_CheckForEMS() before calling this function.\r
+//     MML_CheckForEMS is not local despite the name wwww.\r
+//\r
 \r
 boolean\r
 PML_StartupEMS(global_game_variables_t *gvar)\r
@@ -164,7 +167,6 @@ PML_StartupEMS(global_game_variables_t *gvar)
        byte    err=0, str[64];\r
 \r
        boolean errorflag=false;\r
-       static char     emmname[] = "EMMXXXX0"; //fix by andrius4669\r
        unsigned        EMSVer;\r
        unsigned        totalEMSpages,freeEMSpages,EMSPageFrame,EMSHandle,EMSAvail;\r
        totalEMSpages = freeEMSpages = EMSPageFrame = EMSHandle = EMSAvail = EMSVer = 0;        // set all to 0~\r
@@ -172,31 +174,7 @@ PML_StartupEMS(global_game_variables_t *gvar)
        gvar->pm.emm.EMSAvail = gvar->mmi.EMSmem = 0;\r
 \r
        __asm {\r
-               mov     dx,OFFSET emmname       //fix by andrius4669\r
-               mov     ax,0x3d00\r
-               int     EMM_INT         // try to open EMMXXXX0 device\r
-               jc      error1\r
-\r
-               mov     bx,ax\r
-               mov     ax,0x4400\r
-\r
-               int     EMM_INT         // get device info\r
-               jc      error1\r
-\r
-               and     dx,0x80\r
-               jz      error1\r
-\r
-               mov     ax,0x4407\r
-\r
-               int     EMM_INT         // get status\r
-               jc      error1\r
-               or      al,al\r
-               jz      error1\r
-\r
-               mov     ah,0x3e\r
-               int     EMM_INT         // close handle\r
-               jc      error1\r
-\r
+               //MML_CheckForEMS() takes care of what the code did here\r
                mov     ah,EMS_STATUS\r
                int     EMS_INT\r
                jc      error1                  // make sure EMS hardware is present\r