//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
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
//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
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
#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
\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
#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
\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
#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
#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
#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
} 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
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