]> 4ch.mooo.com Git - 16.git/commitdiff
added stuff to help me study 0.exe it is a complex program wwww what is getting to...
authorsparky4 <sparky4@cock.li>
Mon, 9 Jan 2017 21:56:48 +0000 (15:56 -0600)
committersparky4 <sparky4@cock.li>
Mon, 9 Jan 2017 21:56:48 +0000 (15:56 -0600)
DEBUG.16W [deleted file]
HEAP.16W [deleted file]
MEMINFO.16W [deleted file]
MMDUMP.16W [deleted file]
src/0.c
src/lib/scroll16.c

diff --git a/DEBUG.16W b/DEBUG.16W
deleted file mode 100755 (executable)
index d75bc1a..0000000
--- a/DEBUG.16W
+++ /dev/null
@@ -1,210 +0,0 @@
-\e[0mSeg:0      Size:9707       Owner:0x0\r
-\e[41;31m++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m\e[42;32m0000\r
-\e[0m\e[0mSeg:26e4       Size:44 Owner:0x0\r
-\e[41;31m+\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2710       Size:256        Owner:0x1660\r
-\e[44;34m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2810       Size:256        Owner:0x1452\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2910       Size:256        Owner:0x1454\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2a10       Size:256        Owner:0x1456\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2b10       Size:256        Owner:0x1458\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2c10       Size:256        Owner:0x145a\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2d10       Size:256        Owner:0x145c\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2e10       Size:256        Owner:0x145e\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2f10       Size:256        Owner:0x1460\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3010       Size:256        Owner:0x1462\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3110       Size:256        Owner:0x1464\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3210       Size:256        Owner:0x1466\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3310       Size:256        Owner:0x1468\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3410       Size:256        Owner:0x146a\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3510       Size:256        Owner:0x146c\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3610       Size:256        Owner:0x146e\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3710       Size:256        Owner:0x1470\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3810       Size:256        Owner:0x1472\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3910       Size:256        Owner:0x1474\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3a10       Size:256        Owner:0x1476\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3b10       Size:256        Owner:0x1478\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3c10       Size:256        Owner:0x147a\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3d10       Size:256        Owner:0x147c\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3e10       Size:256        Owner:0x147e\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3f10       Size:256        Owner:0x1480\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4010       Size:256        Owner:0x1482\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4110       Size:256        Owner:0x1484\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4210       Size:256        Owner:0x1486\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4310       Size:256        Owner:0x1488\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4410       Size:256        Owner:0x148a\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4510       Size:256        Owner:0x148c\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4610       Size:256        Owner:0x148e\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4710       Size:256        Owner:0x1490\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4810       Size:256        Owner:0x1492\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4910       Size:256        Owner:0x1494\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4a10       Size:256        Owner:0x1496\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4b10       Size:256        Owner:0x1498\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4c10       Size:256        Owner:0x149a\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4d10       Size:256        Owner:0x149c\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4e10       Size:256        Owner:0x149e\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4f10       Size:256        Owner:0x14a0\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5010       Size:256        Owner:0x14a2\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5110       Size:256        Owner:0x14a4\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5210       Size:256        Owner:0x14a6\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5310       Size:256        Owner:0x14a8\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5410       Size:256        Owner:0x14aa\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5510       Size:256        Owner:0x14ac\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5610       Size:256        Owner:0x14ae\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5710       Size:256        Owner:0x14b0\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5810       Size:256        Owner:0x14b2\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5910       Size:256        Owner:0x14b4\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5a10       Size:256        Owner:0x14b6\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5b10       Size:256        Owner:0x14b8\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5c10       Size:256        Owner:0x14ba\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5d10       Size:256        Owner:0x14bc\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5e10       Size:256        Owner:0x14be\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5f10       Size:256        Owner:0x14c0\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6010       Size:256        Owner:0x14c2\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6110       Size:256        Owner:0x14c4\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6210       Size:256        Owner:0x14c6\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6310       Size:256        Owner:0x14c8\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6410       Size:256        Owner:0x14ca\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6510       Size:256        Owner:0x14cc\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6610       Size:256        Owner:0x14ce\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6710       Size:256        Owner:0x14d0\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6810       Size:256        Owner:0x14d2\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6910       Size:256        Owner:0x14d4\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6a10       Size:256        Owner:0x14d6\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6b10       Size:256        Owner:0x14d8\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6c10       Size:256        Owner:0x14da\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6d10       Size:256        Owner:0x14dc\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6e10       Size:256        Owner:0x14de\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6f10       Size:256        Owner:0x14e0\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7010       Size:256        Owner:0x14e2\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7110       Size:256        Owner:0x14e4\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7210       Size:256        Owner:0x14e6\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7310       Size:256        Owner:0x14e8\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7410       Size:256        Owner:0x14ea\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7510       Size:256        Owner:0x14ec\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7610       Size:256        Owner:0x14ee\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7710       Size:256        Owner:0x14f0\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7810       Size:256        Owner:0x14f2\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7910       Size:256        Owner:0x14f4\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7a10       Size:256        Owner:0x14f6\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7b10       Size:256        Owner:0x14f8\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7c10       Size:256        Owner:0x14fa\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7d10       Size:256        Owner:0x14fc\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7e10       Size:256        Owner:0x14fe\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7f10       Size:256        Owner:0x1500\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8010       Size:256        Owner:0x1502\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8110       Size:256        Owner:0x1504\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8210       Size:256        Owner:0x1506\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8310       Size:256        Owner:0x1508\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8410       Size:256        Owner:0x150a\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8510       Size:256        Owner:0x150c\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8610       Size:256        Owner:0x150e\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8710       Size:256        Owner:0x1510\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8810       Size:256        Owner:0x1512\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8910       Size:256        Owner:0x1514\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8a10       Size:256        Owner:0x1516\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8b10       Size:256        Owner:0x1518\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8c10       Size:401        Owner:0xec1c\r
-\e[44;34m++++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:b710       Size:18671      Owner:0x0\r
-\e[41;31m+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m
\ No newline at end of file
diff --git a/HEAP.16W b/HEAP.16W
deleted file mode 100755 (executable)
index 809c76d..0000000
--- a/HEAP.16W
+++ /dev/null
@@ -1,69 +0,0 @@
-\r
-       == default ==\r
-\r
-  USED block at 27060016 of size 136\r
-  FREE block at 2706009e of size 68\r
-  USED block at 270600e2 of size 50\r
-  USED block at 27060114 of size 50\r
-  USED block at 27060146 of size 50\r
-  USED block at 27060178 of size 50\r
-  USED block at 270601aa of size 50\r
-  USED block at 270601dc of size 50\r
-  USED block at 2706020e of size 50\r
-  USED block at 27060240 of size 50\r
-  USED block at 27060272 of size 50\r
-  USED block at 270602a4 of size 50\r
-  USED block at 270602d6 of size 50\r
-  USED block at 27060308 of size 50\r
-  FREE block at 2706033a of size 14\r
-  USED block at 27060348 of size 20\r
-  FREE block at 2706035c of size 7328\r
-OK - end of heap\r
-\r
-       == near ==\r
-\r
-  USED block at 1705ec66 of size 12\r
-  USED block at 1705ec72 of size 330\r
-  USED block at 1705edbc of size 52\r
-  USED block at 1705edf0 of size 20\r
-  USED block at 1705ee04 of size 20\r
-  USED block at 1705ee18 of size 20\r
-  USED block at 1705ee2c of size 20\r
-  USED block at 1705ee40 of size 20\r
-  USED block at 1705ee54 of size 4520\r
-OK - end of heap\r
-\r
-       == far ==\r
-\r
-  USED block at 27060016 of size 136\r
-  USED block at 2706009e of size 68\r
-  USED block at 270600e2 of size 50\r
-  USED block at 27060114 of size 50\r
-  USED block at 27060146 of size 50\r
-  USED block at 27060178 of size 50\r
-  USED block at 270601aa of size 50\r
-  USED block at 270601dc of size 50\r
-  USED block at 2706020e of size 50\r
-  USED block at 27060240 of size 50\r
-  USED block at 27060272 of size 50\r
-  USED block at 270602a4 of size 50\r
-  USED block at 270602d6 of size 50\r
-  USED block at 27060308 of size 50\r
-  USED block at 2706033a of size 14\r
-  USED block at 27060348 of size 20\r
-  USED block at 2706035c of size 7328\r
-OK - end of heap\r
-\r
-Memory Type         Total      Used       Free\r
-----------------  --------   --------   --------\r
-Default                   8166         756       7410\r
-Near              5014         494       4520\r
-Far               8166         756       7410\r
-----------------  --------   --------   --------\r
-coreleft = 4518\r
-farcoreleft = 36334\r
-GetFreeSize = 31836\r
-GetNearFreeSize = 4520\r
-GetFarFreeSize = 31836\r
-memavl = 4518\r
-stackavail = 31539\r
diff --git a/MEMINFO.16W b/MEMINFO.16W
deleted file mode 100755 (executable)
index e69de29..0000000
diff --git a/MMDUMP.16W b/MMDUMP.16W
deleted file mode 100755 (executable)
index 9811f98..0000000
Binary files a/MMDUMP.16W and /dev/null differ
diff --git a/src/0.c b/src/0.c
index 4a315f19c341ed4231bb04aa350722423c3b9cf4..d6a48249477c1a7223aadd735edc1d97fa7a01be 100755 (executable)
--- a/src/0.c
+++ b/src/0.c
@@ -28,7 +28,7 @@ int main(int argc,char **argv)
        int fd, i;\r
        char *bakapee1,*bakapee2;\r
 \r
-       boolean anim=1,noanim=1;\r
+       boolean anim=1,noanim=0;\r
 \r
        pan.pn=0;\r
 \r
@@ -187,7 +187,7 @@ int main(int argc,char **argv)
                        } //R\r
                        FUNCTIONKEYFUNCTIONS0EXE;\r
 \r
-                       if(anim/* && !noanim*/)\r
+                       if(anim && !noanim)\r
                        {\r
                                /* render box bounds. y does not need modification, but x and width must be multiple of 4 */\r
                                if (x >= overdraw) rx = (x - overdraw) & (~3);\r
index 112610c98d324923af851f6d1e76d1f395367070..f2a16e3d6dffb957f5a73d4e3bcc47164a510493 100755 (executable)
@@ -306,7 +306,7 @@ void panVmemManual(map_view_t *pip, player_t *player, word pn)
 \r
                //down movement\r
                case 4:\r
-                       if(pip[pip[0].pan->pn].ty >= 0 && pip[pip[0].pan->pn].ty+pip[pip[0].pan->pn].page->th < pip[pip[0].pan->pn].page->tilesh+pip[pip[1].pan->pn].page->tilesh)//+pip[pip[2].pan->pn].page->tilesh+pip[pip[3].pan->pn].page->tilesh)\r
+                       if(pip[pip[0].pan->pn].ty >= 0 && pip[pip[0].pan->pn].ty+pip[pip[0].pan->pn].page->th < pip[pip[0].pan->pn].page->tilesh)\r
                        {\r
                                if(player[pn].q<=player[pn].spt)\r
                                {\r
@@ -319,7 +319,7 @@ void panVmemManual(map_view_t *pip, player_t *player, word pn)
 \r
                //up movement\r
                case 0:\r
-                       if(pip[pip[0].pan->pn].ty > 0 && pip[pip[0].pan->pn].ty+pip[pip[0].pan->pn].page->th <= pip[pip[0].pan->pn].page->tilesh+pip[pip[1].pan->pn].page->tilesh)//+pip[pip[2].pan->pn].page->tilesh+pip[pip[3].pan->pn].page->tilesh)\r
+                       if(pip[pip[0].pan->pn].ty > 0 && pip[pip[0].pan->pn].ty+pip[pip[0].pan->pn].page->th <= pip[pip[0].pan->pn].page->tilesh)\r
                        {\r
                                if(player[pn].q<=player[pn].spt)\r
                                {\r