From: sparky4 Date: Wed, 4 Jan 2017 20:07:03 +0000 (-0600) Subject: boolean IN_KeyDown(byte code) polished X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=9ea7542f2ec7df1106ef9bae41d066920fb79521;p=16.git boolean IN_KeyDown(byte code) polished --- diff --git a/DEBUG.16W b/DEBUG.16W new file mode 100755 index 00000000..4e58075f --- /dev/null +++ b/DEBUG.16W @@ -0,0 +1,210 @@ +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 new file mode 100755 index 00000000..c45d5f21 --- /dev/null +++ b/HEAP.16W @@ -0,0 +1,69 @@ + + == 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/MEMINFO.16W b/MEMINFO.16W new file mode 100755 index 00000000..e69de29b diff --git a/MMDUMP.16W b/MMDUMP.16W new file mode 100755 index 00000000..83946afe Binary files /dev/null and b/MMDUMP.16W differ diff --git a/src/lib/16_in.c b/src/lib/16_in.c index 3b7584ac..314ddbfd 100755 --- a/src/lib/16_in.c +++ b/src/lib/16_in.c @@ -1252,7 +1252,11 @@ boolean IN_KeyDown(byte code) #endif return inpu.Keyboard[code]; #ifdef __DEBUG_InputMgr__ - else return kbhit(); + else + if(dbg_notest && kbhit()) + return 1; + else + return 0; #endif } diff --git a/wcpu.exe b/wcpu.exe index da1ad800..16956bbf 100755 Binary files a/wcpu.exe and b/wcpu.exe differ