]> 4ch.mooo.com Git - 16.git/commitdiff
boolean IN_KeyDown(byte code) polished
authorsparky4 <sparky4@cock.li>
Thu, 5 Jan 2017 01:24:41 +0000 (19:24 -0600)
committersparky4 <sparky4@cock.li>
Thu, 5 Jan 2017 01:24:41 +0000 (19:24 -0600)
DEBUG.16W [deleted file]
HEAP.16W [deleted file]
MMDUMP.16W [deleted file]
data/G.PAL
pcxtest.exe
src/scroll.c

diff --git a/DEBUG.16W b/DEBUG.16W
deleted file mode 100755 (executable)
index 4e58075..0000000
--- a/DEBUG.16W
+++ /dev/null
@@ -1,210 +0,0 @@
-\e[0mSeg:0      Size:10046      Owner:0x0\r
-\e[41;31m++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\e[0m\e[42;32m0000\r
-\e[0m\e[0mSeg:2837       Size:44 Owner:0x0\r
-\e[41;31m++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2863       Size:256        Owner:0x1650\r
-\e[44;34m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2963       Size:256        Owner:0x1442\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2a63       Size:256        Owner:0x1444\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2b63       Size:256        Owner:0x1446\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2c63       Size:256        Owner:0x1448\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2d63       Size:256        Owner:0x144a\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2e63       Size:256        Owner:0x144c\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:2f63       Size:256        Owner:0x144e\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3063       Size:256        Owner:0x1450\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3163       Size:256        Owner:0x1452\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3263       Size:256        Owner:0x1454\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3363       Size:256        Owner:0x1456\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3463       Size:256        Owner:0x1458\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3563       Size:256        Owner:0x145a\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3663       Size:256        Owner:0x145c\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3763       Size:256        Owner:0x145e\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3863       Size:256        Owner:0x1460\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3963       Size:256        Owner:0x1462\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3a63       Size:256        Owner:0x1464\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3b63       Size:256        Owner:0x1466\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3c63       Size:256        Owner:0x1468\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3d63       Size:256        Owner:0x146a\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3e63       Size:256        Owner:0x146c\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:3f63       Size:256        Owner:0x146e\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4063       Size:256        Owner:0x1470\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4163       Size:256        Owner:0x1472\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4263       Size:256        Owner:0x1474\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4363       Size:256        Owner:0x1476\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4463       Size:256        Owner:0x1478\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4563       Size:256        Owner:0x147a\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4663       Size:256        Owner:0x147c\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4763       Size:256        Owner:0x147e\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4863       Size:256        Owner:0x1480\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4963       Size:256        Owner:0x1482\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4a63       Size:256        Owner:0x1484\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4b63       Size:256        Owner:0x1486\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4c63       Size:256        Owner:0x1488\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4d63       Size:256        Owner:0x148a\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4e63       Size:256        Owner:0x148c\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:4f63       Size:256        Owner:0x148e\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5063       Size:256        Owner:0x1490\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5163       Size:256        Owner:0x1492\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5263       Size:256        Owner:0x1494\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5363       Size:256        Owner:0x1496\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5463       Size:256        Owner:0x1498\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5563       Size:256        Owner:0x149a\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5663       Size:256        Owner:0x149c\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5763       Size:256        Owner:0x149e\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5863       Size:256        Owner:0x14a0\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5963       Size:256        Owner:0x14a2\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5a63       Size:256        Owner:0x14a4\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5b63       Size:256        Owner:0x14a6\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5c63       Size:256        Owner:0x14a8\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5d63       Size:256        Owner:0x14aa\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5e63       Size:256        Owner:0x14ac\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:5f63       Size:256        Owner:0x14ae\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6063       Size:256        Owner:0x14b0\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6163       Size:256        Owner:0x14b2\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6263       Size:256        Owner:0x14b4\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6363       Size:256        Owner:0x14b6\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6463       Size:256        Owner:0x14b8\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6563       Size:256        Owner:0x14ba\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6663       Size:256        Owner:0x14bc\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6763       Size:256        Owner:0x14be\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6863       Size:256        Owner:0x14c0\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6963       Size:256        Owner:0x14c2\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6a63       Size:256        Owner:0x14c4\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6b63       Size:256        Owner:0x14c6\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6c63       Size:256        Owner:0x14c8\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6d63       Size:256        Owner:0x14ca\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6e63       Size:256        Owner:0x14cc\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:6f63       Size:256        Owner:0x14ce\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7063       Size:256        Owner:0x14d0\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7163       Size:256        Owner:0x14d2\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7263       Size:256        Owner:0x14d4\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7363       Size:256        Owner:0x14d6\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7463       Size:256        Owner:0x14d8\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7563       Size:256        Owner:0x14da\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7663       Size:256        Owner:0x14dc\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7763       Size:256        Owner:0x14de\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7863       Size:256        Owner:0x14e0\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7963       Size:256        Owner:0x14e2\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7a63       Size:256        Owner:0x14e4\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7b63       Size:256        Owner:0x14e6\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7c63       Size:256        Owner:0x14e8\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7d63       Size:256        Owner:0x14ea\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7e63       Size:256        Owner:0x14ec\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:7f63       Size:256        Owner:0x14ee\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8063       Size:256        Owner:0x14f0\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8163       Size:256        Owner:0x14f2\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8263       Size:256        Owner:0x14f4\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8363       Size:256        Owner:0x14f6\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8463       Size:256        Owner:0x14f8\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8563       Size:256        Owner:0x14fa\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8663       Size:256        Owner:0x14fc\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8763       Size:256        Owner:0x14fe\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8863       Size:256        Owner:0x1500\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8963       Size:256        Owner:0x1502\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8a63       Size:256        Owner:0x1504\r
-\e[45;35m+++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8b63       Size:256        Owner:0x1506\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8c63       Size:256        Owner:0x1508\r
-\e[45;35m++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:8d63       Size:401        Owner:0xec1c\r
-\e[44;34m++++++\e[0m\e[42;32m\r
-\e[0m\e[0mSeg:b863       Size:18332      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 c45d5f2..0000000
--- a/HEAP.16W
+++ /dev/null
@@ -1,69 +0,0 @@
-\r
-       == default ==\r
-\r
-  USED block at 28590016 of size 136\r
-  FREE block at 2859009e of size 68\r
-  USED block at 285900e2 of size 50\r
-  USED block at 28590114 of size 50\r
-  USED block at 28590146 of size 50\r
-  USED block at 28590178 of size 50\r
-  USED block at 285901aa of size 50\r
-  USED block at 285901dc of size 50\r
-  USED block at 2859020e of size 50\r
-  USED block at 28590240 of size 50\r
-  USED block at 28590272 of size 50\r
-  USED block at 285902a4 of size 50\r
-  USED block at 285902d6 of size 50\r
-  USED block at 28590308 of size 50\r
-  FREE block at 2859033a of size 14\r
-  USED block at 28590348 of size 20\r
-  FREE block at 2859035c of size 7328\r
-OK - end of heap\r
-\r
-       == near ==\r
-\r
-  USED block at 1858ec66 of size 12\r
-  USED block at 1858ec72 of size 330\r
-  USED block at 1858edbc of size 52\r
-  USED block at 1858edf0 of size 20\r
-  USED block at 1858ee04 of size 20\r
-  USED block at 1858ee18 of size 20\r
-  USED block at 1858ee2c of size 20\r
-  USED block at 1858ee40 of size 20\r
-  USED block at 1858ee54 of size 4520\r
-OK - end of heap\r
-\r
-       == far ==\r
-\r
-  USED block at 28590016 of size 136\r
-  USED block at 2859009e of size 68\r
-  USED block at 285900e2 of size 50\r
-  USED block at 28590114 of size 50\r
-  USED block at 28590146 of size 50\r
-  USED block at 28590178 of size 50\r
-  USED block at 285901aa of size 50\r
-  USED block at 285901dc of size 50\r
-  USED block at 2859020e of size 50\r
-  USED block at 28590240 of size 50\r
-  USED block at 28590272 of size 50\r
-  USED block at 285902a4 of size 50\r
-  USED block at 285902d6 of size 50\r
-  USED block at 28590308 of size 50\r
-  USED block at 2859033a of size 14\r
-  USED block at 28590348 of size 20\r
-  USED block at 2859035c 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 = 28156\r
-GetFreeSize = 23660\r
-GetNearFreeSize = 4520\r
-GetFarFreeSize = 23660\r
-memavl = 4518\r
-stackavail = 31539\r
diff --git a/MMDUMP.16W b/MMDUMP.16W
deleted file mode 100755 (executable)
index 83946af..0000000
Binary files a/MMDUMP.16W and /dev/null differ
index 0ecbac33f44529d9701eae8c9b262c7da0f50416..0c0507ace9e3736b20523be7b7881e7d0d05e7f3 100755 (executable)
Binary files a/data/G.PAL and b/data/G.PAL differ
index 80e12ed78c05cabc73838ce4aabb92ee67240f47..0e40a2ec1bcbfbbce18d0ecb6271512e2b125df5 100755 (executable)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index f14ec0cd2736bf1898678020e3a2d5a86890817f..d3faba1ae31c99200d877d854ef8f9d8466b1c16 100755 (executable)
@@ -24,7 +24,7 @@
 #include "src/lib/16_timer.h"\r
 #include "src/lib/16_dbg.h"\r
 \r
-//#define FADE\r
+#define FADE\r
 #define MODEX  //this is for mode x initiating\r
 \r
 //bitmap_t p;\r
@@ -43,7 +43,7 @@ boolean panswitch=0;//1
        //map_view_db_t pgid[4];\r
        word pg;\r
 //#ifdef FADE\r
-       //static word paloffset=0;\r
+       static word paloffset=0;\r
        byte *dpal;\r
 //#endif\r
        byte *gpal;\r
@@ -215,14 +215,14 @@ 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(22)){\r
+       /*if(IN_KeyDown(22)){\r
        paloffset=0; modexPalBlack(); modexPalUpdate(player[0].data, &paloffset, 0, 0);\r
        printf("1paloffset      =       %d\n", paloffset/3);\r
         modexPalUpdate(map.tiles->data, &paloffset, 0, 0);\r
        printf("2paloffset      =       %d\n", paloffset/3);\r
         modexpdump(mv[0].page); modexpdump(mv[1].page);\r
                IN_UserInput(1,1);\r
-       }\r
+       }*/\r
 #endif\r
 #endif\r
        //pan switch\r