]> 4ch.mooo.com Git - 16.git/commitdiff
trying to figure out the issue with player sprite with pcx i have no idea wwww
authorsparky4 <sparky4@cock.li>
Fri, 16 Dec 2016 16:24:59 +0000 (10:24 -0600)
committersparky4 <sparky4@cock.li>
Fri, 16 Dec 2016 16:24:59 +0000 (10:24 -0600)
17 files changed:
.gitignore
DEBUG.16W
HEAP.16W
MMDUMP.16W
db.exe [new file with mode: 0755]
makefile
pcxtest.exe
src/fonttest.c
src/lib/16_in.h
src/lib/16_mm.h
src/lib/bitmap.c
src/lib/bitmap.h
src/pcxtest.c
src/pcxtest2.c
src/scroll.c
src/util/db.c [moved from src/db.c with 100% similarity]
src/zcroll.c

index 911e8919fc838372ad0448ec35c8c88e4ace16aa..15ee4357276cf654c9f3b49a0271b631860260eb 100755 (executable)
@@ -19,6 +19,7 @@ TODO~
 LICENCE~\r
 *.mah\r
 *.MAH\r
+__wcl__.lnk\r
 !bcexmm.map\r
 !makefile\r
 !modex.lib\r
index 56e1b237bac4eeb761d145149630904a78c87252..607a5fc085c9afc6f139cd9ff744cb4d14d2dfc0 100755 (executable)
--- a/DEBUG.16W
+++ b/DEBUG.16W
-\e[0mSeg:0      Size:10340      Owner:0x0\r
-\e[41;31m++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m\e[42;32m0000\r
-\e[0m\e[0mSeg:294f       Size:37 Owner:0x0\r
-\e[41;31m+\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2974       Size:256        Owner:0x1650\r
+\e[0mSeg:0      Size:12150      Owner:0x0\r
+\e[41;31m++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m\e[42;32m0000\r
+\e[0m\e[0mSeg:3061       Size:37 Owner:0x0\r
+\e[41;31m++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3086       Size:256        Owner:0x1650\r
 \e[44;34m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2a74       Size:256        Owner:0x1442\r
+\e[0m\e[0mSeg:3186       Size:256        Owner:0x1442\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3286       Size:256        Owner:0x1444\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3386       Size:256        Owner:0x1446\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2b74       Size:256        Owner:0x1444\r
+\e[0m\e[0mSeg:3486       Size:256        Owner:0x1448\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2c74       Size:256        Owner:0x1446\r
+\e[0m\e[0mSeg:3586       Size:256        Owner:0x144a\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2d74       Size:256        Owner:0x1448\r
+\e[0m\e[0mSeg:3686       Size:256        Owner:0x144c\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2e74       Size:256        Owner:0x144a\r
+\e[0m\e[0mSeg:3786       Size:256        Owner:0x144e\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2f74       Size:256        Owner:0x144c\r
+\e[0m\e[0mSeg:3886       Size:256        Owner:0x1450\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3074       Size:256        Owner:0x144e\r
+\e[0m\e[0mSeg:3986       Size:256        Owner:0x1452\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3174       Size:256        Owner:0x1450\r
+\e[0m\e[0mSeg:3a86       Size:256        Owner:0x1454\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3274       Size:256        Owner:0x1452\r
+\e[0m\e[0mSeg:3b86       Size:256        Owner:0x1456\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3374       Size:256        Owner:0x1454\r
+\e[0m\e[0mSeg:3c86       Size:256        Owner:0x1458\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3474       Size:256        Owner:0x1456\r
+\e[0m\e[0mSeg:3d86       Size:256        Owner:0x145a\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3574       Size:256        Owner:0x1458\r
+\e[0m\e[0mSeg:3e86       Size:256        Owner:0x145c\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3674       Size:256        Owner:0x145a\r
+\e[0m\e[0mSeg:3f86       Size:256        Owner:0x145e\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3774       Size:256        Owner:0x145c\r
+\e[0m\e[0mSeg:4086       Size:256        Owner:0x1460\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3874       Size:256        Owner:0x145e\r
+\e[0m\e[0mSeg:4186       Size:256        Owner:0x1462\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3974       Size:256        Owner:0x1460\r
+\e[0m\e[0mSeg:4286       Size:256        Owner:0x1464\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3a74       Size:256        Owner:0x1462\r
+\e[0m\e[0mSeg:4386       Size:256        Owner:0x1466\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3b74       Size:256        Owner:0x1464\r
+\e[0m\e[0mSeg:4486       Size:256        Owner:0x1468\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3c74       Size:256        Owner:0x1466\r
+\e[0m\e[0mSeg:4586       Size:256        Owner:0x146a\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3d74       Size:256        Owner:0x1468\r
+\e[0m\e[0mSeg:4686       Size:256        Owner:0x146c\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3e74       Size:256        Owner:0x146a\r
+\e[0m\e[0mSeg:4786       Size:256        Owner:0x146e\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3f74       Size:256        Owner:0x146c\r
+\e[0m\e[0mSeg:4886       Size:256        Owner:0x1470\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4074       Size:256        Owner:0x146e\r
+\e[0m\e[0mSeg:4986       Size:256        Owner:0x1472\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4174       Size:256        Owner:0x1470\r
+\e[0m\e[0mSeg:4a86       Size:256        Owner:0x1474\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4274       Size:256        Owner:0x1472\r
+\e[0m\e[0mSeg:4b86       Size:256        Owner:0x1476\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4374       Size:256        Owner:0x1474\r
+\e[0m\e[0mSeg:4c86       Size:256        Owner:0x1478\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4474       Size:256        Owner:0x1476\r
+\e[0m\e[0mSeg:4d86       Size:256        Owner:0x147a\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4574       Size:256        Owner:0x1478\r
+\e[0m\e[0mSeg:4e86       Size:256        Owner:0x147c\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4674       Size:256        Owner:0x147a\r
+\e[0m\e[0mSeg:4f86       Size:256        Owner:0x147e\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4774       Size:256        Owner:0x147c\r
+\e[0m\e[0mSeg:5086       Size:256        Owner:0x1480\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4874       Size:256        Owner:0x147e\r
+\e[0m\e[0mSeg:5186       Size:256        Owner:0x1482\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4974       Size:256        Owner:0x1480\r
+\e[0m\e[0mSeg:5286       Size:256        Owner:0x1484\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4a74       Size:256        Owner:0x1482\r
+\e[0m\e[0mSeg:5386       Size:256        Owner:0x1486\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4b74       Size:256        Owner:0x1484\r
+\e[0m\e[0mSeg:5486       Size:256        Owner:0x1488\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4c74       Size:256        Owner:0x1486\r
+\e[0m\e[0mSeg:5586       Size:256        Owner:0x148a\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4d74       Size:256        Owner:0x1488\r
+\e[0m\e[0mSeg:5686       Size:256        Owner:0x148c\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4e74       Size:256        Owner:0x148a\r
+\e[0m\e[0mSeg:5786       Size:256        Owner:0x148e\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4f74       Size:256        Owner:0x148c\r
+\e[0m\e[0mSeg:5886       Size:256        Owner:0x1490\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5074       Size:256        Owner:0x148e\r
+\e[0m\e[0mSeg:5986       Size:256        Owner:0x1492\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5174       Size:256        Owner:0x1490\r
+\e[0m\e[0mSeg:5a86       Size:256        Owner:0x1494\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5274       Size:256        Owner:0x1492\r
+\e[0m\e[0mSeg:5b86       Size:256        Owner:0x1496\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5374       Size:256        Owner:0x1494\r
+\e[0m\e[0mSeg:5c86       Size:256        Owner:0x1498\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5474       Size:256        Owner:0x1496\r
+\e[0m\e[0mSeg:5d86       Size:256        Owner:0x149a\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5574       Size:256        Owner:0x1498\r
+\e[0m\e[0mSeg:5e86       Size:256        Owner:0x149c\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5674       Size:256        Owner:0x149a\r
+\e[0m\e[0mSeg:5f86       Size:256        Owner:0x149e\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5774       Size:256        Owner:0x149c\r
+\e[0m\e[0mSeg:6086       Size:256        Owner:0x14a0\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5874       Size:256        Owner:0x149e\r
+\e[0m\e[0mSeg:6186       Size:256        Owner:0x14a2\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5974       Size:256        Owner:0x14a0\r
+\e[0m\e[0mSeg:6286       Size:256        Owner:0x14a4\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5a74       Size:256        Owner:0x14a2\r
+\e[0m\e[0mSeg:6386       Size:256        Owner:0x14a6\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5b74       Size:256        Owner:0x14a4\r
+\e[0m\e[0mSeg:6486       Size:256        Owner:0x14a8\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5c74       Size:256        Owner:0x14a6\r
+\e[0m\e[0mSeg:6586       Size:256        Owner:0x14aa\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5d74       Size:256        Owner:0x14a8\r
+\e[0m\e[0mSeg:6686       Size:256        Owner:0x14ac\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5e74       Size:256        Owner:0x14aa\r
+\e[0m\e[0mSeg:6786       Size:256        Owner:0x14ae\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5f74       Size:256        Owner:0x14ac\r
+\e[0m\e[0mSeg:6886       Size:256        Owner:0x14b0\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6074       Size:256        Owner:0x14ae\r
+\e[0m\e[0mSeg:6986       Size:256        Owner:0x14b2\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6174       Size:256        Owner:0x14b0\r
+\e[0m\e[0mSeg:6a86       Size:256        Owner:0x14b4\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6274       Size:256        Owner:0x14b2\r
+\e[0m\e[0mSeg:6b86       Size:256        Owner:0x14b6\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6374       Size:256        Owner:0x14b4\r
+\e[0m\e[0mSeg:6c86       Size:256        Owner:0x14b8\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6474       Size:256        Owner:0x14b6\r
+\e[0m\e[0mSeg:6d86       Size:256        Owner:0x14ba\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6574       Size:256        Owner:0x14b8\r
+\e[0m\e[0mSeg:6e86       Size:256        Owner:0x14bc\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6674       Size:256        Owner:0x14ba\r
+\e[0m\e[0mSeg:6f86       Size:256        Owner:0x14be\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6774       Size:256        Owner:0x14bc\r
+\e[0m\e[0mSeg:7086       Size:256        Owner:0x14c0\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6874       Size:256        Owner:0x14be\r
+\e[0m\e[0mSeg:7186       Size:256        Owner:0x14c2\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6974       Size:256        Owner:0x14c0\r
+\e[0m\e[0mSeg:7286       Size:256        Owner:0x14c4\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6a74       Size:256        Owner:0x14c2\r
+\e[0m\e[0mSeg:7386       Size:256        Owner:0x14c6\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6b74       Size:256        Owner:0x14c4\r
+\e[0m\e[0mSeg:7486       Size:256        Owner:0x14c8\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6c74       Size:256        Owner:0x14c6\r
+\e[0m\e[0mSeg:7586       Size:256        Owner:0x14ca\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6d74       Size:256        Owner:0x14c8\r
+\e[0m\e[0mSeg:7686       Size:256        Owner:0x14cc\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6e74       Size:256        Owner:0x14ca\r
+\e[0m\e[0mSeg:7786       Size:256        Owner:0x14ce\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6f74       Size:256        Owner:0x14cc\r
+\e[0m\e[0mSeg:7886       Size:256        Owner:0x14d0\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7074       Size:256        Owner:0x14ce\r
+\e[0m\e[0mSeg:7986       Size:256        Owner:0x14d2\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7174       Size:256        Owner:0x14d0\r
+\e[0m\e[0mSeg:7a86       Size:256        Owner:0x14d4\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7274       Size:256        Owner:0x14d2\r
+\e[0m\e[0mSeg:7b86       Size:256        Owner:0x14d6\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7374       Size:256        Owner:0x14d4\r
+\e[0m\e[0mSeg:7c86       Size:256        Owner:0x14d8\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7474       Size:256        Owner:0x14d6\r
+\e[0m\e[0mSeg:7d86       Size:256        Owner:0x14da\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7574       Size:256        Owner:0x14d8\r
+\e[0m\e[0mSeg:7e86       Size:256        Owner:0x14dc\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7674       Size:256        Owner:0x14da\r
+\e[0m\e[0mSeg:7f86       Size:256        Owner:0x14de\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7774       Size:256        Owner:0x14dc\r
+\e[0m\e[0mSeg:8086       Size:256        Owner:0x14e0\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7874       Size:256        Owner:0x14de\r
+\e[0m\e[0mSeg:8186       Size:256        Owner:0x14e2\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7974       Size:256        Owner:0x14e0\r
+\e[0m\e[0mSeg:8286       Size:256        Owner:0x14e4\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7a74       Size:256        Owner:0x14e2\r
+\e[0m\e[0mSeg:8386       Size:256        Owner:0x14e6\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7b74       Size:256        Owner:0x14e4\r
+\e[0m\e[0mSeg:8486       Size:256        Owner:0x14e8\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7c74       Size:256        Owner:0x14e6\r
+\e[0m\e[0mSeg:8586       Size:256        Owner:0x14ea\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7d74       Size:256        Owner:0x14e8\r
+\e[0m\e[0mSeg:8686       Size:256        Owner:0x14ec\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7e74       Size:256        Owner:0x14ea\r
+\e[0m\e[0mSeg:8786       Size:256        Owner:0x14ee\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7f74       Size:256        Owner:0x14ec\r
+\e[0m\e[0mSeg:8886       Size:256        Owner:0x14f0\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8074       Size:256        Owner:0x14ee\r
+\e[0m\e[0mSeg:8986       Size:256        Owner:0x14f2\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8174       Size:256        Owner:0x14f0\r
+\e[0m\e[0mSeg:8a86       Size:256        Owner:0x14f4\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8274       Size:256        Owner:0x14f2\r
+\e[0m\e[0mSeg:8b86       Size:256        Owner:0x14f6\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8374       Size:256        Owner:0x14f4\r
+\e[0m\e[0mSeg:8c86       Size:256        Owner:0x14f8\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8474       Size:256        Owner:0x14f6\r
+\e[0m\e[0mSeg:8d86       Size:256        Owner:0x14fa\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8574       Size:256        Owner:0x14f8\r
+\e[0m\e[0mSeg:8e86       Size:256        Owner:0x14fc\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8674       Size:256        Owner:0x14fa\r
+\e[0m\e[0mSeg:8f86       Size:256        Owner:0x14fe\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8774       Size:256        Owner:0x14fc\r
+\e[0m\e[0mSeg:9086       Size:256        Owner:0x1500\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8874       Size:256        Owner:0x14fe\r
+\e[0m\e[0mSeg:9186       Size:256        Owner:0x1502\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8974       Size:256        Owner:0x1500\r
+\e[0m\e[0mSeg:9286       Size:256        Owner:0x1504\r
 \e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8a74       Size:256        Owner:0x1502\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8b74       Size:256        Owner:0x1504\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8c74       Size:256        Owner:0x1506\r
+\e[0m\e[0mSeg:9386       Size:256        Owner:0x1506\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8d74       Size:256        Owner:0x1508\r
+\e[0m\e[0mSeg:9486       Size:256        Owner:0x1508\r
 \e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8e74       Size:401        Owner:0xec10\r
+\e[0m\e[0mSeg:9586       Size:401        Owner:0xec14\r
 \e[44;34m++++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:b974       Size:18059      Owner:0x0\r
-\e[41;31m+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m
\ No newline at end of file
+\e[0m\e[0mSeg:c086       Size:16249      Owner:0x0\r
+\e[41;31m++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m
\ No newline at end of file
index 16af83b8864ad40240ba8e6a45bb9dfa827094af..e333a77e9505b60c2aa7a80db1eea98e2daeb408 100755 (executable)
--- a/HEAP.16W
+++ b/HEAP.16W
@@ -1,59 +1,59 @@
 \r
        == default ==\r
 \r
-  FREE block at 29720016 of size 18\r
-  USED block at 29720028 of size 50\r
-  USED block at 2972005a of size 50\r
-  USED block at 2972008c of size 50\r
-  USED block at 297200be of size 50\r
-  USED block at 297200f0 of size 50\r
-  USED block at 29720122 of size 50\r
-  USED block at 29720154 of size 50\r
-  USED block at 29720186 of size 50\r
-  USED block at 297201b8 of size 50\r
-  USED block at 297201ea of size 50\r
-  USED block at 2972021c of size 50\r
-  USED block at 2972024e of size 50\r
-  USED block at 29720280 of size 50\r
-  FREE block at 297202b2 of size 14\r
-  USED block at 297202c0 of size 20\r
-  USED block at 297202d4 of size 136\r
-  FREE block at 2972035c of size 7328\r
+  FREE block at 30840016 of size 18\r
+  USED block at 30840028 of size 50\r
+  USED block at 3084005a of size 50\r
+  USED block at 3084008c of size 50\r
+  USED block at 308400be of size 50\r
+  USED block at 308400f0 of size 50\r
+  USED block at 30840122 of size 50\r
+  USED block at 30840154 of size 50\r
+  USED block at 30840186 of size 50\r
+  USED block at 308401b8 of size 50\r
+  USED block at 308401ea of size 50\r
+  USED block at 3084021c of size 50\r
+  USED block at 3084024e of size 50\r
+  USED block at 30840280 of size 50\r
+  FREE block at 308402b2 of size 14\r
+  USED block at 308402c0 of size 20\r
+  USED block at 308402d4 of size 136\r
+  FREE block at 3084035c of size 7328\r
 OK - end of heap\r
 \r
        == near ==\r
 \r
-  USED block at 1971ec66 of size 12\r
-  USED block at 1971ec72 of size 528\r
-  USED block at 1971ee82 of size 72\r
-  USED block at 1971eeca of size 20\r
-  USED block at 1971eede of size 20\r
-  USED block at 1971eef2 of size 20\r
-  USED block at 1971ef06 of size 20\r
-  USED block at 1971ef1a of size 20\r
-  USED block at 1971ef2e of size 4302\r
+  USED block at 2083ec66 of size 12\r
+  USED block at 2083ec72 of size 528\r
+  USED block at 2083ee82 of size 72\r
+  USED block at 2083eeca of size 20\r
+  USED block at 2083eede of size 20\r
+  USED block at 2083eef2 of size 20\r
+  USED block at 2083ef06 of size 20\r
+  USED block at 2083ef1a of size 20\r
+  USED block at 2083ef2e of size 4302\r
 OK - end of heap\r
 \r
        == far ==\r
 \r
-  USED block at 29720016 of size 18\r
-  USED block at 29720028 of size 50\r
-  USED block at 2972005a of size 50\r
-  USED block at 2972008c of size 50\r
-  USED block at 297200be of size 50\r
-  USED block at 297200f0 of size 50\r
-  USED block at 29720122 of size 50\r
-  USED block at 29720154 of size 50\r
-  USED block at 29720186 of size 50\r
-  USED block at 297201b8 of size 50\r
-  USED block at 297201ea of size 50\r
-  USED block at 2972021c of size 50\r
-  USED block at 2972024e of size 50\r
-  USED block at 29720280 of size 50\r
-  USED block at 297202b2 of size 14\r
-  USED block at 297202c0 of size 20\r
-  USED block at 297202d4 of size 136\r
-  USED block at 2972035c of size 7328\r
+  USED block at 30840016 of size 18\r
+  USED block at 30840028 of size 50\r
+  USED block at 3084005a of size 50\r
+  USED block at 3084008c of size 50\r
+  USED block at 308400be of size 50\r
+  USED block at 308400f0 of size 50\r
+  USED block at 30840122 of size 50\r
+  USED block at 30840154 of size 50\r
+  USED block at 30840186 of size 50\r
+  USED block at 308401b8 of size 50\r
+  USED block at 308401ea of size 50\r
+  USED block at 3084021c of size 50\r
+  USED block at 3084024e of size 50\r
+  USED block at 30840280 of size 50\r
+  USED block at 308402b2 of size 14\r
+  USED block at 308402c0 of size 20\r
+  USED block at 308402d4 of size 136\r
+  USED block at 3084035c of size 7328\r
 OK - end of heap\r
 \r
 Memory Type         Total      Used       Free\r
@@ -63,9 +63,9 @@ Near             5014         712       4302
 Far               8166         806       7360\r
 ----------------  --------   --------   --------\r
 coreleft = 4300\r
-farcoreleft = 27888\r
-GetFreeSize = 23610\r
+farcoreleft = 60698\r
+GetFreeSize = 56420\r
 GetNearFreeSize = 4302\r
-GetFarFreeSize = 23610\r
+GetFarFreeSize = 56420\r
 memavl = 4300\r
-stackavail = 31527\r
+stackavail = 31515\r
index ca7b17279151588123cd36a286737d4878bb25f6..68b42b31f0b4a7a9f5b6f5e923250b0f0c576396 100755 (executable)
Binary files a/MMDUMP.16W and b/MMDUMP.16W differ
diff --git a/db.exe b/db.exe
new file mode 100755 (executable)
index 0000000..5616e4a
Binary files /dev/null and b/db.exe differ
index 2f4b6e4ebe6d8fbdc0f7a816103282f23c0b811d..ab1dc97b92fee5d8526e716b0aa018db7664e673 100755 (executable)
--- a/makefile
+++ b/makefile
@@ -173,11 +173,11 @@ TESTEXEC2 = &
        test.exe &
        test0.exe &
        pcxtest.exe &
-       pcxtest2.exe
+       pcxtest2.exe &
+       db.exe
 UTILEXEC = &
        palettel.exe &
-       palettec.exe &
-       db.exe
+       palettec.exe
 EXEC = &
        16.exe &
        bakapi.exe &
@@ -212,7 +212,7 @@ fonttest.exe:        fonttest.$(OBJ) gfx.lib
 fontgfx.exe:   fontgfx.$(OBJ) gfx.lib $(DOSLIBLIBS)
 inputest.exe:   inputest.$(OBJ) $(16LIB) $(DOSLIBLIBS)
 #sountest.exe: sountest.$(OBJ) $(16LIB)
-pcxtest.exe:   pcxtest.$(OBJ) gfx.lib $(DOSLIBLIBS)
+pcxtest.exe:   pcxtest.$(OBJ) gfx.lib $(DOSLIBLIBS) $(16LIB)##++++
 vrstest.exe:   vrstest.$(OBJ) $(16LIB) gfx.lib $(DOSLIBLIBS)
 #vgacamm.exe:  vgacamm.$(OBJ) $(16LIB) gfx.lib $(DOSLIBLIBS)
 palettec.exe:   palettec.$(OBJ) gfx.lib $(DOSLIBLIBS)
@@ -255,7 +255,7 @@ inputest.$(OBJ):$(SRC)/inputest.c
 #tsthimem.$(OBJ): $(SRC)/tsthimem.c
 exmmtest.$(OBJ):$(SRC)/exmmtest.c
 vgmtest.$(OBJ):$(SRC)/vgmtest.c
-db.$(OBJ):$(SRC)/db.c
+db.$(OBJ):$(SRC)/util/db.c
 
 #
 # non executable objects libraries
index 94d4b68aff6440cda36aa623352bf32f370d0506..80e12ed78c05cabc73838ce4aabb92ee67240f47 100755 (executable)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index 6ecbdfbd5dafcf06cb87a5b49f5c7dcb34194226..ffa6d0c7d20fa30a70a2b01c1166df9c45beffc1 100755 (executable)
@@ -21,8 +21,8 @@
  */\r
 #include <stdio.h>\r
 #include <conio.h>\r
-#include "lib/16_t.h"\r
-#include "lib/16text.h"\r
+#include "src/lib/16_t.h"\r
+#include "src/lib/16text.h"\r
 \r
 void main(int argc, char near *argv[])\r
 {\r
index e0efe8cfd593e321138cfcce8a85afd1be9a39ea..67a98f6175e0443261c0451a908e48c2dafe7bba 100755 (executable)
@@ -227,7 +227,7 @@ typedef     struct
        memptr          gr;\r
        entity_t                *ent;\r
 #endif\r
-       bitmap_t __far *data;           //supposively the sprite sheet data//old format\r
+       bitmap_t        *data;          //supposively the sprite sheet data//old format\r
        sword hp; //hitpoints of the player\r
        int persist_aniframe;    /* gonna be increased to 1 before being used, so 0 is ok for default */\r
        CursorInfo      info;\r
index b160ac6515b40662358a553f897e5f2371d8f5c7..d070bd07595aeacf12a359bfb61617ce466eda0c 100755 (executable)
@@ -39,8 +39,8 @@
 \r
 #define FREEBLOCK(x) {*x->useptr=NULL;x->next=gvar->mm.mmfree;gvar->mm.mmfree=x;}\r
 \r
-#define SAVENEARHEAP   0x200           // space to leave in data segment\r
-#define SAVEFARHEAP    0//x400                 // space to leave in far heap\r
+#define SAVENEARHEAP   0x2400          // space to leave in data segment200\r
+#define SAVEFARHEAP    0x2400                  // space to leave in far heap400\r
 \r
 #define        BUFFERSIZE              0x1000          // miscelanious, allways available buffer\r
 \r
index b030b379ef3c1bf504935aade28f4f4649b2317f..6d7f72ed11ce81105f102799a6c2312528d8a556 100755 (executable)
@@ -24,6 +24,9 @@
 #include <stdlib.h>\r
 #include <malloc.h>\r
 #include "src/lib/bitmap.h"\r
+#include "src/lib/16_mm.h"\r
+#include "src/lib/16_pm.h"\r
+#include "src/lib/16_ca.h"\r
 \r
 static struct pcxHeader {\r
        byte id;\r
@@ -91,7 +94,7 @@ static void loadPcxPalette(FILE *file, bitmap_t *result) {
 \r
 \r
 bitmap_t\r
-bitmapLoadPcx(char *filename) {\r
+bitmapLoadPcx(char *filename, global_game_variables_t *gv) {\r
        FILE *file;\r
        bitmap_t result;\r
        dword bufSize;\r
@@ -111,7 +114,9 @@ bitmapLoadPcx(char *filename) {
        /* allocate the buffer */\r
        //printf("%zu\n", _memmax());\r
        bufSize = (/*(dword)*/result.width * result.height);\r
-       result.data = _fmalloc(bufSize);\r
+       //CA_LoadFile(filename, (memptr *)(result.data), gv);\r
+       result.data = malloc(bufSize);\r
+\r
 //     result.data = (byte far *)_fmalloc(bufSize);\r
 //     result.data = (byte __huge *)halloc(bufSize, sizeof(byte));\r
        /*printf("&bufSize=%p\n", &bufSize);\r
@@ -121,7 +126,6 @@ bitmapLoadPcx(char *filename) {
        printf("Size of result.width is %zu \n", result.width);\r
        printf("Size of result.height is %zu \n", result.height);\r
        printf("Dimensions of result is %lu\n", (dword)result.width*result.height);*/\r
-       //exit(0);\r
        if(!result.data) {\r
                fprintf(stderr, "Could not allocate memory for bitmap data.");\r
                fclose(file);\r
index 6ef0af717d09818d4f06f5895557dcbd0863f146..25537645a6e5c99bf387d2a774ba3425ec774faa 100755 (executable)
@@ -28,6 +28,6 @@
 \r
 #include "src/lib/16_vl.h"\r
 \r
-bitmap_t bitmapLoadPcx(char *filename);\r
+bitmap_t bitmapLoadPcx(char *filename, global_game_variables_t *gv);\r
 tileset_t bitmapLoadPcxTiles(char *filename, word twidth, word theight);\r
 #endif\r
index 5325303c9bd6c4b1a749018136cee484105ed62e..1f366fed8c0d626965a7cf0a8b1c9519e7def1cc 100755 (executable)
@@ -25,7 +25,7 @@
 #include <string.h>\r
 #include "src/lib/16_vl.h"\r
 #include "src/lib/bitmap.h"\r
-//----#include "src/lib/planar.h"\r
+#include "src/lib/16render.h"\r
 \r
 static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */\r
 \r
@@ -33,9 +33,7 @@ void main() {
        static global_game_variables_t gvar;\r
        bitmap_t bmp;\r
 //---- planar_buf_t *p;\r
-       int i;\r
        word start;\r
-       int plane;\r
        float t1, t2;\r
 \r
        // DOSLIB: check our environment\r
@@ -60,7 +58,7 @@ void main() {
        }\r
 \r
 //0000 bmp = bitmapLoadPcx("data/koishi~~.pcx");\r
-       bmp = bitmapLoadPcx("data/chikyuu.pcx");\r
+       bmp = bitmapLoadPcx("data/chikyuu.pcx", &gvar);\r
 //     bmp = bitmapLoadPcx("data/koishi^^.pcx");\r
 //     bmp = bitmapLoadPcx("16/PCX_LIB/chikyuu.pcx");\r
 //---- p = planar_buf_from_bitmap(&bmp);\r
index c65f4e9411a73068f87d59e9ba59d14f0405ead0..2ab4863223d6edf3621ca91a4769a3b043989ab4 100755 (executable)
@@ -85,7 +85,7 @@ void main() {
        }\r
 \r
 //0000 bmp = bitmapLoadPcx("data/koishi~~.pcx");\r
-       bmp = bitmapLoadPcx("data/chikyuu.pcx");\r
+       bmp = bitmapLoadPcx("data/chikyuu.pcx", &gvar);\r
 //     bmp = bitmapLoadPcx("data/koishi^^.pcx");\r
 //     bmp = bitmapLoadPcx("16/PCX_LIB/chikyuu.pcx");\r
 //---- p = planar_buf_from_bitmap(&bmp);\r
index 716c7dcfb76a13243b890b29b6ae5cb2b5add4ca..00c672ca3913cdeddefb5edf0066d96eaf63a0e3 100755 (executable)
@@ -28,8 +28,7 @@
 //#define FADE\r
 #define MODEX  //this is for mode x initiating\r
 \r
-//word far *clock= (word far*) 0x046C; /* 18.2hz clock */\r
-//bitmap_t *p;\r
+//bitmap_t p;\r
 static map_t map;\r
 player_t player[MaxPlayers];\r
 map_view_t mv[4];\r
@@ -77,8 +76,8 @@ void main(int argc, char *argv[])
        //mappalptr = map.tiles->btdata->palette;\r
 \r
        /* data */\r
-       //player[0].data = _fmalloc(48*128); //TODO use exmm\r
-       *player[0].data = bitmapLoadPcx("data/chikyuu.pcx"); // load sprite\r
+       player[0].data = malloc(72*128); //TODO use exmm\r
+       *player[0].data = bitmapLoadPcx("data/chikyuu.pcx", &gvar); // load sprite\r
 \r
        /* create the planar buffer */\r
 ////++++       (player[0].data) = *planar_buf_from_bitmap(&p);\r
@@ -218,7 +217,6 @@ void main(int argc, char *argv[])
 #ifdef MODEX\r
 #ifdef FADE\r
        if(IN_KeyDown(24)){ modexPalUpdate0(gpal); paloffset=0; modexpdump(mv[0].page); modexpdump(mv[1].page);  IN_UserInput(1,1); } //p\r
-       if(IN_KeyDown(23)){ modexDrawSprite(mv[1].page, 160, 120, player[0].data); IN_UserInput(1,1); } //o\r
        if(IN_KeyDown(22)){\r
        paloffset=0; modexPalBlack(); modexPalUpdate(player[0].data, &paloffset, 0, 0);\r
        printf("1paloffset      =       %d\n", paloffset/3);\r
@@ -258,8 +256,8 @@ void main(int argc, char *argv[])
        }\r
        if(IN_KeyDown(66))      //f8\r
        {\r
-//             modexDrawSprite(mv[0].page, 16, 16, p);\r
-               modexDrawSprite(mv[0].page, 32+48, 16, (player[0].data));\r
+//             modexDrawSprite(mv[0].page, 16, 16, &p);\r
+               modexDrawSprite(mv[0].page, 32+72, 16, (player[0].data));\r
        }\r
        //TODO fmemtest into page\r
        /*if(IN_KeyDown(4+1))   //4\r
similarity index 100%
rename from src/db.c
rename to src/util/db.c
index 97b45e605aaca03333cbfafcfce1f42b1a6cb783..90c72add6a38a7315976189a7deb253faf4796f5 100755 (executable)
@@ -28,7 +28,7 @@
 \r
 #define MODEXZ\r
 \r
-//TODO: known issues the array dependent mv stuff and player arrays\r
+//bitmap_t p;\r
 static map_t map;\r
 player_t player[MaxPlayers];\r
 map_view_t mv[4];\r
@@ -76,8 +76,8 @@ void main(int argc, char *argv[])
 \r
        // data\r
        read_vrs(&gvar, "data/spri/chikyuu.vrs", player[0].ent->spri->spritesheet);\r
-       player[0].data = malloc(48*128); //TODO use exmm\r
-       *player[0].data = bitmapLoadPcx("data/chikyuu.pcx"); // load sprite\r
+       player[0].data = malloc(72*128); //TODO use exmm\r
+       *player[0].data = bitmapLoadPcx("data/chikyuu.pcx", &gvar); // load sprite\r
 \r
        //      input!\r
        IN_Default(0, &player,ctrl_Keyboard1);\r
@@ -93,8 +93,10 @@ void main(int argc, char *argv[])
 #ifdef MODEXZ\r
 #ifdef FADE\r
        modexPalBlack();        //reset the palette~\r
+#endif\r
        CA_LoadFile("data/spri/chikyuu.pal", &pal, &gvar);\r
        modexPalUpdate1(pal);\r
+#ifdef FADE\r
        gpal = modexNewPal();\r
        modexPalSave(gpal);\r
        modexSavePalFile("data/g.pal", gpal);\r
@@ -178,7 +180,6 @@ void main(int argc, char *argv[])
                }       //p\r
 #ifdef FADE\r
                if(IN_KeyDown(24)){ modexPalUpdate0(gpal); paloffset=0; modexpdump(mv[0].page); IN_UserInput(1,1); } //p\r
-               if(IN_KeyDown(23)){ modexDrawSprite(mv[1].page, 160, 120, player[0].data); IN_UserInput(1,1); } //o\r
                if(IN_KeyDown(22)){\r
                        printf("2paloffset      =       %d\n", paloffset/3);\r
                        IN_UserInput(1,1);\r
@@ -203,8 +204,8 @@ void main(int argc, char *argv[])
                }\r
                if(IN_KeyDown(66))      //f8\r
                {\r
-       //              modexDrawSprite(mv[0].page, 16, 16, p);\r
-                       modexDrawSprite(mv[0].page, 32+48, 16, (player[0].data));\r
+//                     modexDrawSprite(mv[0].page, 16, 16, &p);\r
+                       modexDrawSprite(mv[0].page, 32+72, 16, (player[0].data));\r
                }\r
                //TODO fmemtest into page\r
                /*if(IN_KeyDown(4+1))   //4\r