#include "src/lib/16_ca.h"\r
#include "src/lib/16_mm.h"\r
#include "src/lib/16_hc.h"\r
-#include "src/lib/16_lib.h"\r
+#include "src/lib/16_tail.h"\r
//#include "src/lib/modex16.h"\r
#pragma hdrstop\r
\r
// getch();\r
}\r
#endif\r
+//static global_game_variables_t gvar;\r
\r
void\r
main(int argc, char *argv[])\r
{\r
byte w=1;\r
- global_game_variables_t gvar;\r
+ static global_game_variables_t gvar;\r
#ifdef __WATCOMC__\r
__segment sega;\r
#endif\r
//file name //\r
\r
gvar.mm.mmstarted=0;\r
+ dbg_debugpm=1; //debug pm\r
\r
//PRINTBB\r
if(argv[1]){ bakapee1 = argv[1];\r
}\r
//printf("main()=%Fp start MM\n", *argv[0]);\r
MM_Startup(&gvar);\r
-#ifdef __DEBUG_PM__\r
- PM_Startup(&gvar);\r
- //PM_CheckMainMem(&gvar);\r
- PM_UnlockMainMem(&gvar);\r
-#endif\r
+ //printf("ok\n");\r
+//#ifdef __WATCOMC__\r
+ if(dbg_debugpm>0)\r
+ {\r
+ PM_Startup(&gvar);\r
+ //printf("pmstarted ok\n");\r
+ //PM_CheckMainMem(&gvar);\r
+ PM_UnlockMainMem(&gvar);\r
+ }\r
+//#endif\r
CA_Startup(&gvar);\r
// printf(" done!\n");\r
- PRINTBB;\r
+ //0000PRINTBB;\r
// printf("press any key to continue!\n");\r
// getch();\r
#ifdef FILEREAD\r
//printf("medium blue = non purgable\n");\r
//printf("red = locked\n");\r
printf("press any key to continue!\n");\r
- getch();\r
- MM_ShowMemory(&gvar);\r
- MM_DumpData(&gvar);\r
- MM_Report_(&gvar);\r
+ DebugMemory_(&gvar, 1);\r
if(baka) printf("\nyay!\n");\r
else printf("\npoo!\n");\r
printf("press any key to continue!\n");\r
#ifdef FILEREAD\r
}\r
#endif\r
- printf("bakapee1=%s\n", bakapee1);\r
- printf("bakapee2=%s\n", bakapee2);\r
+ DebugMemory_(&gvar, 1);\r
+ MM_DumpData(&gvar);\r
+ MM_Report_(&gvar);\r
+ //printf("bakapee1=%s\n", bakapee1);\r
+ //printf("bakapee2=%s\n", bakapee2);\r
MM_FreePtr(&bigbuffer, &gvar);\r
-#ifdef __DEBUG_PM__\r
- PM_Shutdown(&gvar);\r
-#endif\r
+//#ifdef __WATCOMC__\r
+ if(dbg_debugpm>0)\r
+ PM_Shutdown(&gvar);\r
+//#endif\r
CA_Shutdown(&gvar);\r
MM_Shutdown(&gvar);\r
free(bakapee1); free(bakapee2);\r