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