]> 4ch.mooo.com Git - 16.git/commitdiff
wwww
authorsparky4 <sparky4@cock.li>
Mon, 5 Dec 2016 14:59:00 +0000 (08:59 -0600)
committersparky4 <sparky4@cock.li>
Mon, 5 Dec 2016 14:59:00 +0000 (08:59 -0600)
14 files changed:
TC0000.SWP [new file with mode: 0755]
bcexmm.dsk
bcexmm.prj
src/exmmtest.c
src/lib/16_dbg.c
src/lib/16_dbg.h
src/lib/16_in.c
src/lib/16_in.h
src/lib/16_mm.h
src/lib/16_pm.c
src/lib/16_pm.h
src/lib/16_tail.h
src/lib/typdefst.h
src/vrstest.c

diff --git a/TC0000.SWP b/TC0000.SWP
new file mode 100755 (executable)
index 0000000..0e56afc
Binary files /dev/null and b/TC0000.SWP differ
index e1d0305cc01f67f39d407bd22298c5dd3ba31b23..37ef39464eeb0a7adc01e24f9cb0a0e7c0af00c3 100755 (executable)
Binary files a/bcexmm.dsk and b/bcexmm.dsk differ
index bf1d7a44a098ef77eef8b89799e6e3bd54a48a64..17f3fb091e14cb2d92b94fe8fd8d501d7eea8b0d 100755 (executable)
Binary files a/bcexmm.prj and b/bcexmm.prj differ
index fc4eb11d61660c75a2d99dc86e7ebe282a03dc68..d973ba59fcc2ae33e9a5642eab23703f70aa81ba 100755 (executable)
@@ -87,7 +87,10 @@ main(int argc, char *argv[])
        //file name //\r
 \r
        gvar.mm.mmstarted=0;\r
+\r
+#ifdef __DEBUG_PM__\r
        dbg_debugpm=1;  //debug pm\r
+#endif\r
 \r
        //PRINTBB\r
        if(argv[1]){ bakapee1 = argv[1];\r
@@ -101,13 +104,17 @@ main(int argc, char *argv[])
        MM_Startup(&gvar);\r
        //printf("ok\n");\r
 //#ifdef __WATCOMC__\r
+#ifdef __DEBUG_PM__\r
        if(dbg_debugpm>0)\r
        {\r
+#endif\r
                PM_Startup(&gvar);\r
                //printf("pmstarted ok\n");\r
                //PM_CheckMainMem(&gvar);\r
                PM_UnlockMainMem(&gvar);\r
+#ifdef __DEBUG_PM__\r
        }\r
+#endif\r
 //#endif\r
        CA_Startup(&gvar);\r
 //     printf("                done!\n");\r
@@ -157,7 +164,9 @@ for(w=0;w<2;w++)
        //printf("bakapee2=%s\n", bakapee2);\r
        MM_FreePtr(&bigbuffer, &gvar);\r
 //#ifdef __WATCOMC__\r
+#ifdef __DEBUG_PM__\r
        if(dbg_debugpm>0)\r
+#endif\r
                PM_Shutdown(&gvar);\r
 //#endif\r
        CA_Shutdown(&gvar);\r
index 7766a1d443592a49cc64c032d357fa02e1a6584f..13d5846de0d99293bf2d8c107807dda32e381292 100755 (executable)
 unsigned char _DEBUG_INITed = 0;\r
 struct info_8250 *_DEBUG_uart = NULL;\r
 \r
+#ifdef __DEBUG__\r
+#ifdef __DEBUG_PM__\r
+boolean dbg_debugpm=0;\r
+#endif\r
+#ifdef __DEBUG_InputMgr__\r
+boolean dbg_testkeyin=0,dbg_testcontrolnoisy=0;\r
+#endif\r
+#endif\r
+\r
 int _DEBUG_INIT() {\r
        if (!_DEBUG_INITed) {\r
                unsigned int i;\r
index d02abb39dcaf1772ac18b6c503da23d84f29f0d7..1454e091a463ba56737757b3ffa6562fc6b45a3c 100755 (executable)
@@ -2,10 +2,19 @@
 #ifndef _SRC_LIB_16_DBG\r
 #define _SRC_LIB_16_DBG\r
 \r
-#define __DEBUG__\r
+//#define __DEBUG__\r
 //#define __DEBUG_PM__\r
 //#define __DEBUG_MM__\r
 \r
+#ifdef __DEBUG__\r
+#ifdef __DEBUG_PM__\r
+extern boolean dbg_debugpm=0;\r
+#endif\r
+#ifdef __DEBUG_InputMgr__\r
+extern boolean dbg_testkeyin=0,dbg_testcontrolnoisy=0;\r
+#endif\r
+#endif\r
+\r
 # ifdef DEBUGSERIAL\r
 #  include <hw/8250/8250.h>\r
 \r
index 0d3b29c79087d7d43aca9339004ca9b1df8b5976..69324ee20136d5730845805039a23d79b478f522 100755 (executable)
 \r
 #include "src/lib/16_in.h"\r
 \r
-#ifdef __DEBUG_InputMgr__\r
-boolean dbg_testkeyin=0,dbg_testcontrolnoisy=0;\r
-#endif\r
-\r
 static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */\r
 \r
 /*\r
index 3c1046331ce38665be4f350d90901970a6a17bc1..7ee2c61ec278c5ae3506ccccfe37fdf700cb1db0 100755 (executable)
 #include "src/lib/16_enti.h"\r
 //#include "src/lib/bitmap.h"  //old format\r
 #endif\r
-#ifdef __DEBUG__\r
-#define        __DEBUG_InputMgr__\r
-extern boolean dbg_testkeyin,dbg_testcontrolnoisy;\r
-#endif\r
 \r
 //if else for gfxtesting and direction\r
 //player[pn].d == 2 ||\r
index b68eea9c472ba0055b8484bff1f45c5e78dddbb3..b160ac6515b40662358a553f897e5f2371d8f5c7 100755 (executable)
@@ -30,7 +30,6 @@
 \r
 #ifdef __DEBUG__               // 1 == Debug/Dev  ;  0 == Production/final\r
 #define OUT_OF_MEM_MSG "MM_GetPtr: Out of memory!\nYou were short :%lu bytes\n"\r
-extern boolean dbg_debugpm;\r
 #else\r
 #define OUT_OF_MEM_MSG "\npee\n"\r
 #endif\r
index 7ecab1eb418ee35fb6ef1d30a77ea3e6c53f51c0..bf7ad829df74b5443825a50062973b04c31d8e28 100755 (executable)
 #include "src/lib/16_pm.h"\r
 #pragma hdrstop\r
 \r
-#ifdef __DEBUG__\r
-boolean dbg_debugpm=0;\r
-#endif\r
-\r
 //     Main Mem specific variables\r
        //boolean                       MainPresent;\r
 /*     memptr                  MainMemPages[PMMaxMainMem];\r
index 4c015e987fd351f39029c6f4f805b821f2d6db43..567b953ee76101f784e62201b3d364283cd81beb 100755 (executable)
 #include "src/lib/16_hc.h"\r
 #include "src/lib/16_mm.h"\r
 #include "src/lib/16_ca.h"\r
-#include <dos.h>\r
-\r
-#ifdef __DEBUG__\r
-extern boolean dbg_debugpm;\r
+#ifdef __WATCOMC__\r
+#include "src/lib/16_dbg.h"\r
 #endif\r
+#include <dos.h>\r
 \r
 /*//   NOTE! PMPageSize must be an even divisor of EMSPageSize, and >= 1024\r
 #define        EMSPageSize             16384\r
index d9d37b1632e768a72cf4c1d9f81b9033e6a66518..b22affdd9e83cf5606f0ca23391048a1a472bab4 100755 (executable)
@@ -29,8 +29,6 @@
 #include "src/lib/16_ca.h"\r
 #include "src/lib/16_in.h"\r
 \r
-extern boolean dbg_debugpm;\r
-\r
 void DebugMemory_(global_game_variables_t *gvar, boolean q);\r
 void Shutdown16(global_game_variables_t *gvar);\r
 void Startup16(global_game_variables_t *gvar);\r
index a27b6b8599374f6950e0939fbb37e215dd5114a7..be0cdc914b2bfaf6f5304a2b27ffe70ed7703f9f 100755 (executable)
@@ -342,7 +342,7 @@ typedef struct
 } global_game_variables_t;\r
 \r
 extern char global_temp_status_text[512];\r
-\r
+#ifdef __WATCOMC__\r
 #define EINVFMT EMFILE\r
-\r
+#endif\r
 #endif /* _TYPEDEFSTRUCT_H_ */\r
index 743fe4aff9bdbd8421db40f61c3a0150651e02c8..d9ab0f709794228dc5e1d05db31c104ddb2264b4 100755 (executable)
@@ -52,8 +52,9 @@ void main() {
        word w=0;\r
 \r
        gvar.mm.mmstarted=0;\r
+#ifdef __DEBUG_PM__\r
        dbg_debugpm=1;\r
-\r
+#endif\r
        // DOSLIB: check our environment\r
        probe_dos();\r
 \r