From 6feaff34f8461d5e3a9542c2df359b585c1e5120 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Fri, 16 Dec 2016 08:42:49 -0600 Subject: [PATCH] engi stuff moved to tdef and textinit is in startup16 --- DEBUG.16W | 210 ---------------------------------------------- HEAP.16W | 71 ---------------- MEMINFO.16W | 0 MMDUMP.16W | Bin 2550 -> 0 bytes git_igno.re | 1 + makefile | 12 +-- src/16.c | 34 +------- src/16.h | 8 -- src/fonttest.c | 2 +- src/lib/16_tail.c | 3 + src/lib/16_tail.h | 1 + src/lib/16_tdef.h | 8 ++ src/lib/16text.c | 2 +- src/lib/16text.h | 1 - 14 files changed, 23 insertions(+), 330 deletions(-) delete mode 100755 DEBUG.16W delete mode 100755 HEAP.16W delete mode 100755 MEMINFO.16W delete mode 100755 MMDUMP.16W diff --git a/DEBUG.16W b/DEBUG.16W deleted file mode 100755 index 25724d77..00000000 --- a/DEBUG.16W +++ /dev/null @@ -1,210 +0,0 @@ -Seg:0 Size:10117 Owner:0x0 -+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++0000 -Seg:287e Size:36 Owner:0x0 -++ -Seg:28a2 Size:256 Owner:0x1650 -++++ -Seg:29a2 Size:256 Owner:0x1442 -++++ -Seg:2aa2 Size:256 Owner:0x1444 -++++ -Seg:2ba2 Size:256 Owner:0x1446 -++++ -Seg:2ca2 Size:256 Owner:0x1448 -+++++ -Seg:2da2 Size:256 Owner:0x144a -++++ -Seg:2ea2 Size:256 Owner:0x144c -++++ -Seg:2fa2 Size:256 Owner:0x144e -++++ -Seg:30a2 Size:256 Owner:0x1450 -++++ -Seg:31a2 Size:256 Owner:0x1452 -+++++ -Seg:32a2 Size:256 Owner:0x1454 -++++ -Seg:33a2 Size:256 Owner:0x1456 -++++ -Seg:34a2 Size:256 Owner:0x1458 -++++ -Seg:35a2 Size:256 Owner:0x145a -++++ -Seg:36a2 Size:256 Owner:0x145c -+++++ -Seg:37a2 Size:256 Owner:0x145e -++++ -Seg:38a2 Size:256 Owner:0x1460 -++++ -Seg:39a2 Size:256 Owner:0x1462 -++++ -Seg:3aa2 Size:256 Owner:0x1464 -++++ -Seg:3ba2 Size:256 Owner:0x1466 -+++++ -Seg:3ca2 Size:256 Owner:0x1468 -++++ -Seg:3da2 Size:256 Owner:0x146a -++++ -Seg:3ea2 Size:256 Owner:0x146c -++++ -Seg:3fa2 Size:256 Owner:0x146e -++++ -Seg:40a2 Size:256 Owner:0x1470 -+++++ -Seg:41a2 Size:256 Owner:0x1472 -++++ -Seg:42a2 Size:256 Owner:0x1474 -++++ -Seg:43a2 Size:256 Owner:0x1476 -++++ -Seg:44a2 Size:256 Owner:0x1478 -++++ -Seg:45a2 Size:256 Owner:0x147a -+++++ -Seg:46a2 Size:256 Owner:0x147c -++++ -Seg:47a2 Size:256 Owner:0x147e -++++ -Seg:48a2 Size:256 Owner:0x1480 -++++ -Seg:49a2 Size:256 Owner:0x1482 -++++ -Seg:4aa2 Size:256 Owner:0x1484 -+++++ -Seg:4ba2 Size:256 Owner:0x1486 -++++ -Seg:4ca2 Size:256 Owner:0x1488 -++++ -Seg:4da2 Size:256 Owner:0x148a -++++ -Seg:4ea2 Size:256 Owner:0x148c -++++ -Seg:4fa2 Size:256 Owner:0x148e -+++++ -Seg:50a2 Size:256 Owner:0x1490 -++++ -Seg:51a2 Size:256 Owner:0x1492 -++++ -Seg:52a2 Size:256 Owner:0x1494 -++++ -Seg:53a2 Size:256 Owner:0x1496 -++++ -Seg:54a2 Size:256 Owner:0x1498 -+++++ -Seg:55a2 Size:256 Owner:0x149a -++++ -Seg:56a2 Size:256 Owner:0x149c -++++ -Seg:57a2 Size:256 Owner:0x149e -++++ -Seg:58a2 Size:256 Owner:0x14a0 -++++ -Seg:59a2 Size:256 Owner:0x14a2 -+++++ -Seg:5aa2 Size:256 Owner:0x14a4 -++++ -Seg:5ba2 Size:256 Owner:0x14a6 -++++ -Seg:5ca2 Size:256 Owner:0x14a8 -++++ -Seg:5da2 Size:256 Owner:0x14aa -++++ -Seg:5ea2 Size:256 Owner:0x14ac -+++++ -Seg:5fa2 Size:256 Owner:0x14ae -++++ -Seg:60a2 Size:256 Owner:0x14b0 -++++ -Seg:61a2 Size:256 Owner:0x14b2 -++++ -Seg:62a2 Size:256 Owner:0x14b4 -++++ -Seg:63a2 Size:256 Owner:0x14b6 -+++++ -Seg:64a2 Size:256 Owner:0x14b8 -++++ -Seg:65a2 Size:256 Owner:0x14ba -++++ -Seg:66a2 Size:256 Owner:0x14bc -++++ -Seg:67a2 Size:256 Owner:0x14be -++++ -Seg:68a2 Size:256 Owner:0x14c0 -+++++ -Seg:69a2 Size:256 Owner:0x14c2 -++++ -Seg:6aa2 Size:256 Owner:0x14c4 -++++ -Seg:6ba2 Size:256 Owner:0x14c6 -++++ -Seg:6ca2 Size:256 Owner:0x14c8 -++++ -Seg:6da2 Size:256 Owner:0x14ca -+++++ -Seg:6ea2 Size:256 Owner:0x14cc -++++ -Seg:6fa2 Size:256 Owner:0x14ce -++++ -Seg:70a2 Size:256 Owner:0x14d0 -++++ -Seg:71a2 Size:256 Owner:0x14d2 -++++ -Seg:72a2 Size:256 Owner:0x14d4 -+++++ -Seg:73a2 Size:256 Owner:0x14d6 -++++ -Seg:74a2 Size:256 Owner:0x14d8 -++++ -Seg:75a2 Size:256 Owner:0x14da -++++ -Seg:76a2 Size:256 Owner:0x14dc -++++ -Seg:77a2 Size:256 Owner:0x14de -+++++ -Seg:78a2 Size:256 Owner:0x14e0 -++++ -Seg:79a2 Size:256 Owner:0x14e2 -++++ -Seg:7aa2 Size:256 Owner:0x14e4 -++++ -Seg:7ba2 Size:256 Owner:0x14e6 -++++ -Seg:7ca2 Size:256 Owner:0x14e8 -+++++ -Seg:7da2 Size:256 Owner:0x14ea -++++ -Seg:7ea2 Size:256 Owner:0x14ec -++++ -Seg:7fa2 Size:256 Owner:0x14ee -++++ -Seg:80a2 Size:256 Owner:0x14f0 -++++ -Seg:81a2 Size:256 Owner:0x14f2 -+++++ -Seg:82a2 Size:256 Owner:0x14f4 -++++ -Seg:83a2 Size:256 Owner:0x14f6 -++++ -Seg:84a2 Size:256 Owner:0x14f8 -++++ -Seg:85a2 Size:256 Owner:0x14fa -++++ -Seg:86a2 Size:256 Owner:0x14fc -+++++ -Seg:87a2 Size:256 Owner:0x14fe -++++ -Seg:88a2 Size:256 Owner:0x1500 -++++ -Seg:89a2 Size:256 Owner:0x1502 -++++ -Seg:8aa2 Size:256 Owner:0x1504 -++++ -Seg:8ba2 Size:256 Owner:0x1506 -+++++ -Seg:8ca2 Size:256 Owner:0x1508 -++++ -Seg:8da2 Size:401 Owner:0xec10 -++++++ -Seg:b8a2 Size:18269 Owner:0x0 -++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ \ No newline at end of file diff --git a/HEAP.16W b/HEAP.16W deleted file mode 100755 index 6b921851..00000000 --- a/HEAP.16W +++ /dev/null @@ -1,71 +0,0 @@ - - == default == - - FREE block at 28a00016 of size 18 - USED block at 28a00028 of size 50 - USED block at 28a0005a of size 50 - USED block at 28a0008c of size 50 - USED block at 28a000be of size 50 - USED block at 28a000f0 of size 50 - USED block at 28a00122 of size 50 - USED block at 28a00154 of size 50 - USED block at 28a00186 of size 50 - USED block at 28a001b8 of size 50 - USED block at 28a001ea of size 50 - USED block at 28a0021c of size 50 - USED block at 28a0024e of size 50 - USED block at 28a00280 of size 50 - FREE block at 28a002b2 of size 14 - USED block at 28a002c0 of size 20 - USED block at 28a002d4 of size 136 - FREE block at 28a0035c of size 7328 -OK - end of heap - - == near == - - USED block at 189fec66 of size 12 - USED block at 189fec72 of size 330 - USED block at 189fedbc of size 52 - USED block at 189fedf0 of size 20 - USED block at 189fee04 of size 20 - USED block at 189fee18 of size 20 - USED block at 189fee2c of size 20 - USED block at 189fee40 of size 20 - USED block at 189fee54 of size 4520 -OK - end of heap - - == far == - - USED block at 28a00016 of size 18 - USED block at 28a00028 of size 50 - USED block at 28a0005a of size 50 - USED block at 28a0008c of size 50 - USED block at 28a000be of size 50 - USED block at 28a000f0 of size 50 - USED block at 28a00122 of size 50 - USED block at 28a00154 of size 50 - USED block at 28a00186 of size 50 - USED block at 28a001b8 of size 50 - USED block at 28a001ea of size 50 - USED block at 28a0021c of size 50 - USED block at 28a0024e of size 50 - USED block at 28a00280 of size 50 - USED block at 28a002b2 of size 14 - USED block at 28a002c0 of size 20 - USED block at 28a002d4 of size 136 - USED block at 28a0035c of size 7328 -OK - end of heap - -Memory Type Total Used Free ----------------- -------- -------- -------- -Default 8166 806 7360 -Near 5014 494 4520 -Far 8166 806 7360 ----------------- -------- -------- -------- -coreleft = 4518 -farcoreleft = 28106 -GetFreeSize = 23610 -GetNearFreeSize = 4520 -GetFarFreeSize = 23610 -memavl = 4518 -stackavail = 31527 diff --git a/MEMINFO.16W b/MEMINFO.16W deleted file mode 100755 index e69de29b..00000000 diff --git a/MMDUMP.16W b/MMDUMP.16W deleted file mode 100755 index 9c6a7aa6b786c64690b86b0bafb645984cd6e120..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2550 zcmZ|RyG=tu002Q^Bzkxu1W0H5-4BT#XyLv!&;}hNCpbV8Z#3D4?+~u@<8q$YE!IN0Fn*QRFCc6gi33^|4zQ;sRelw-;<<(P6zIi?&- zjwQ#EW681PSaK{mmK)4#^#1?h*0|im I&tvX>0let #include -#include "lib/types.h" +#include "lib/16_t.h" #include "lib/16text.h" void main(int argc, char near *argv[]) diff --git a/src/lib/16_tail.c b/src/lib/16_tail.c index 6cd9eb92..767ebfcc 100755 --- a/src/lib/16_tail.c +++ b/src/lib/16_tail.c @@ -24,6 +24,7 @@ */ #include "src/lib/16_tail.h" +#include "src/lib/16text.h" /* ========================== @@ -68,6 +69,8 @@ void Startup16(global_game_variables_t *gvar) } _DEBUG("Serial debug output started\n"); // NTS: All serial output must end messages with newline, or DOSBox-X will not emit text to log _DEBUGF("Serial debug output printf test %u %u %u\n",1U,2U,3U); + + textInit(); #endif gvar->mm.mmstarted=0; gvar->pm.PMStarted=0; diff --git a/src/lib/16_tail.h b/src/lib/16_tail.h index 8cd30094..f268469b 100755 --- a/src/lib/16_tail.h +++ b/src/lib/16_tail.h @@ -24,6 +24,7 @@ #define __16_TAIL__ #include "src/lib/16_head.h" +#include "src/lib/16text.h" #include "src/lib/16_pm.h" #include "src/lib/16_mm.h" #include "src/lib/16_ca.h" diff --git a/src/lib/16_tdef.h b/src/lib/16_tdef.h index 2ea3f9fe..d38d8a9b 100755 --- a/src/lib/16_tdef.h +++ b/src/lib/16_tdef.h @@ -330,6 +330,14 @@ typedef struct //========================================================================== //actual global game varables! +typedef enum { + ENGI_EXIT, + ENGI_QUIT, + ENGI_RUN, + ENGI_INPUT, + ENGI_PAUSE +} engi_stat_t; + typedef struct { video_t video; // video settings variable diff --git a/src/lib/16text.c b/src/lib/16text.c index 0f946510..d395c027 100755 --- a/src/lib/16text.c +++ b/src/lib/16text.c @@ -20,7 +20,7 @@ * */ -#include "16text.h" +#include "src/lib/16text.h" /* this array holds the rom font descriptors */ font_t romFonts[4]; diff --git a/src/lib/16text.h b/src/lib/16text.h index ed037ce5..c6f3e36c 100755 --- a/src/lib/16text.h +++ b/src/lib/16text.h @@ -31,7 +31,6 @@ #include #include #endif -//#include "src/lib/16_t.h" #include "src/lib/16_head.h" /* font information type */ -- 2.39.5