]> 4ch.mooo.com Git - 16.git/commitdiff
trying to figure out the issue with player sprite with pcx
authorsparky4 <sparky4@cock.li>
Fri, 16 Dec 2016 15:11:24 +0000 (09:11 -0600)
committersparky4 <sparky4@cock.li>
Fri, 16 Dec 2016 15:11:24 +0000 (09:11 -0600)
DEBUG.16W [new file with mode: 0755]
HEAP.16W [new file with mode: 0755]
MEMINFO.16W [new file with mode: 0755]
MMDUMP.16W [new file with mode: 0755]
data/G.PAL [new file with mode: 0755]
pcxtest.exe
src/lib/16_in.h
src/lib/bitmap.c
src/scroll.c
src/zcroll.c

diff --git a/DEBUG.16W b/DEBUG.16W
new file mode 100755 (executable)
index 0000000..56e1b23
--- /dev/null
+++ b/DEBUG.16W
@@ -0,0 +1,210 @@
+\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[44;34m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:2a74       Size:256        Owner:0x1442\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:2b74       Size:256        Owner:0x1444\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:2c74       Size:256        Owner:0x1446\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:2d74       Size:256        Owner:0x1448\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:2e74       Size:256        Owner:0x144a\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:2f74       Size:256        Owner:0x144c\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3074       Size:256        Owner:0x144e\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3174       Size:256        Owner:0x1450\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3274       Size:256        Owner:0x1452\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3374       Size:256        Owner:0x1454\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3474       Size:256        Owner:0x1456\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3574       Size:256        Owner:0x1458\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3674       Size:256        Owner:0x145a\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3774       Size:256        Owner:0x145c\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3874       Size:256        Owner:0x145e\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3974       Size:256        Owner:0x1460\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3a74       Size:256        Owner:0x1462\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3b74       Size:256        Owner:0x1464\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3c74       Size:256        Owner:0x1466\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3d74       Size:256        Owner:0x1468\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3e74       Size:256        Owner:0x146a\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:3f74       Size:256        Owner:0x146c\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:4074       Size:256        Owner:0x146e\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:4174       Size:256        Owner:0x1470\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:4274       Size:256        Owner:0x1472\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:4374       Size:256        Owner:0x1474\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:4474       Size:256        Owner:0x1476\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:4574       Size:256        Owner:0x1478\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:4674       Size:256        Owner:0x147a\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:4774       Size:256        Owner:0x147c\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:4874       Size:256        Owner:0x147e\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:4974       Size:256        Owner:0x1480\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:4a74       Size:256        Owner:0x1482\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:4b74       Size:256        Owner:0x1484\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:4c74       Size:256        Owner:0x1486\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:4d74       Size:256        Owner:0x1488\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:4e74       Size:256        Owner:0x148a\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:4f74       Size:256        Owner:0x148c\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:5074       Size:256        Owner:0x148e\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:5174       Size:256        Owner:0x1490\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:5274       Size:256        Owner:0x1492\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:5374       Size:256        Owner:0x1494\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:5474       Size:256        Owner:0x1496\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:5574       Size:256        Owner:0x1498\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:5674       Size:256        Owner:0x149a\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:5774       Size:256        Owner:0x149c\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:5874       Size:256        Owner:0x149e\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:5974       Size:256        Owner:0x14a0\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:5a74       Size:256        Owner:0x14a2\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:5b74       Size:256        Owner:0x14a4\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:5c74       Size:256        Owner:0x14a6\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:5d74       Size:256        Owner:0x14a8\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:5e74       Size:256        Owner:0x14aa\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:5f74       Size:256        Owner:0x14ac\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:6074       Size:256        Owner:0x14ae\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:6174       Size:256        Owner:0x14b0\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:6274       Size:256        Owner:0x14b2\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:6374       Size:256        Owner:0x14b4\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:6474       Size:256        Owner:0x14b6\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:6574       Size:256        Owner:0x14b8\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:6674       Size:256        Owner:0x14ba\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:6774       Size:256        Owner:0x14bc\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:6874       Size:256        Owner:0x14be\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:6974       Size:256        Owner:0x14c0\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:6a74       Size:256        Owner:0x14c2\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:6b74       Size:256        Owner:0x14c4\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:6c74       Size:256        Owner:0x14c6\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:6d74       Size:256        Owner:0x14c8\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:6e74       Size:256        Owner:0x14ca\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:6f74       Size:256        Owner:0x14cc\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:7074       Size:256        Owner:0x14ce\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:7174       Size:256        Owner:0x14d0\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:7274       Size:256        Owner:0x14d2\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:7374       Size:256        Owner:0x14d4\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:7474       Size:256        Owner:0x14d6\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:7574       Size:256        Owner:0x14d8\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:7674       Size:256        Owner:0x14da\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:7774       Size:256        Owner:0x14dc\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:7874       Size:256        Owner:0x14de\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:7974       Size:256        Owner:0x14e0\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:7a74       Size:256        Owner:0x14e2\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:7b74       Size:256        Owner:0x14e4\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:7c74       Size:256        Owner:0x14e6\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:7d74       Size:256        Owner:0x14e8\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:7e74       Size:256        Owner:0x14ea\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:7f74       Size:256        Owner:0x14ec\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:8074       Size:256        Owner:0x14ee\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:8174       Size:256        Owner:0x14f0\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:8274       Size:256        Owner:0x14f2\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:8374       Size:256        Owner:0x14f4\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:8474       Size:256        Owner:0x14f6\r
+\e[45;35m+++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:8574       Size:256        Owner:0x14f8\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:8674       Size:256        Owner:0x14fa\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:8774       Size:256        Owner:0x14fc\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:8874       Size:256        Owner:0x14fe\r
+\e[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:8974       Size:256        Owner:0x1500\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[45;35m++++\e[0m\e[42;32m\r
+\e[0m\e[0mSeg:8d74       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[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
diff --git a/HEAP.16W b/HEAP.16W
new file mode 100755 (executable)
index 0000000..16af83b
--- /dev/null
+++ b/HEAP.16W
@@ -0,0 +1,71 @@
+\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
+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
+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
+OK - end of heap\r
+\r
+Memory Type         Total      Used       Free\r
+----------------  --------   --------   --------\r
+Default                   8166         806       7360\r
+Near              5014         712       4302\r
+Far               8166         806       7360\r
+----------------  --------   --------   --------\r
+coreleft = 4300\r
+farcoreleft = 27888\r
+GetFreeSize = 23610\r
+GetNearFreeSize = 4302\r
+GetFarFreeSize = 23610\r
+memavl = 4300\r
+stackavail = 31527\r
diff --git a/MEMINFO.16W b/MEMINFO.16W
new file mode 100755 (executable)
index 0000000..e69de29
diff --git a/MMDUMP.16W b/MMDUMP.16W
new file mode 100755 (executable)
index 0000000..ca7b172
Binary files /dev/null and b/MMDUMP.16W differ
diff --git a/data/G.PAL b/data/G.PAL
new file mode 100755 (executable)
index 0000000..0ecbac3
Binary files /dev/null and b/data/G.PAL differ
index 5febf45293dfeda02f70d9cafecc76f9aab9516c..94d4b68aff6440cda36aa623352bf32f370d0506 100755 (executable)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index 9e4bfc2e88ae047cf49024a4e5919e5818cc117a..e0efe8cfd593e321138cfcce8a85afd1be9a39ea 100755 (executable)
@@ -227,7 +227,7 @@ typedef     struct
        memptr          gr;\r
        entity_t                *ent;\r
 #endif\r
-       bitmap_t *data;         //supposively the sprite sheet data//old format\r
+       bitmap_t __far *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 7f9df1f0f836a65cd6454b05a4407e677ea9d755..b030b379ef3c1bf504935aade28f4f4649b2317f 100755 (executable)
@@ -111,7 +111,7 @@ bitmapLoadPcx(char *filename) {
        /* allocate the buffer */\r
        //printf("%zu\n", _memmax());\r
        bufSize = (/*(dword)*/result.width * result.height);\r
-       result.data = malloc(bufSize);\r
+       result.data = _fmalloc(bufSize);\r
 //     result.data = (byte far *)_fmalloc(bufSize);\r
 //     result.data = (byte __huge *)halloc(bufSize, sizeof(byte));\r
        /*printf("&bufSize=%p\n", &bufSize);\r
index 776c3a165ed731f3e02640633709b3f2f401754b..716c7dcfb76a13243b890b29b6ae5cb2b5add4ca 100755 (executable)
@@ -77,7 +77,7 @@ void main(int argc, char *argv[])
        //mappalptr = map.tiles->btdata->palette;\r
 \r
        /* data */\r
-       player[0].data = malloc(48*128); //TODO use exmm\r
+       //player[0].data = _fmalloc(48*128); //TODO use exmm\r
        *player[0].data = bitmapLoadPcx("data/chikyuu.pcx"); // load sprite\r
 \r
        /* create the planar buffer */\r
@@ -217,7 +217,8 @@ void main(int argc, char *argv[])
        }       //p\r
 #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); }\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
index 32342529b5642a0d3cf3522889a478427018de05..97b45e605aaca03333cbfafcfce1f42b1a6cb783 100755 (executable)
@@ -76,6 +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
 \r
        //      input!\r
        IN_Default(0, &player,ctrl_Keyboard1);\r
@@ -141,9 +143,9 @@ void main(int argc, char *argv[])
 #ifdef FADE\r
        modexFadeOn(4, gpal);\r
 #endif\r
-       strcpy(global_temp_status_text, "press enter for the loop of zcroll\nescape to quit");\r
+       /*strcpy(global_temp_status_text, "press enter for the loop of zcroll\nescape to quit");\r
        modexprint(&gvar.video.page[0], 144, 72, 1, 7, 0, global_temp_status_text);\r
-       while(!IN_KeyDown(sc_Enter)){ if(IN_KeyDown(sc_Escape)) goto quit; } IN_UserInput(1,1); //wwww\r
+       while(!IN_KeyDown(sc_Enter)){ if(IN_KeyDown(sc_Escape)) goto quit; } IN_UserInput(1,1);*///wwww\r
        while(!IN_KeyDown(sc_Escape))// && player[0].hp>0)\r
        {\r
                shinku(&gvar);\r
@@ -175,7 +177,8 @@ void main(int argc, char *argv[])
                         IN_UserInput(1,1);\r
                }       //p\r
 #ifdef FADE\r
-               if(IN_KeyDown(24)){ modexPalUpdate0(gpal); paloffset=0; modexpdump(mv[0].page); IN_UserInput(1,1); }\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
@@ -222,7 +225,7 @@ void main(int argc, char *argv[])
 \r
        /* fade back to text mode */\r
        /* but 1st lets save the game palette~ */\r
-       quit:\r
+       //quit:\r
 #ifdef FADE\r
        modexPalSave(gpal);\r
        modexSavePalFile("data/g.pal", gpal);\r