#include "src/lib/16_vl.h"\r
#include "src/lib/testpatt.h"\r
\r
+#ifdef __WATCOMC__\r
+#include <hw/cpu/cpu.h>\r
+#include <hw/dos/dos.h>\r
+#include <hw/vga/vga.h>\r
+#include <hw/vga/vrl.h>\r
+#include <hw/vga/vrs.h>\r
+#endif\r
+\r
+//gvar.video.ofs.bufferofs,gvar.video.ofs.displayofs,\r
+#define FIZZLEFADEFUNCTION \\r
+ if(gvar.in.inst->Keyboard[sc_F]){ FizzleFade(\\r
+ atoi(gvar.video.page[0].data),atoi(gvar.video.page[1].data),\\r
+320,240,true, &gvar); IN_UserInput(1, &gvar); } \\r
+\r
#define TAIL_FUNCTIONKEYFUNCTIONS \\r
if(gvar.in.inst->Keyboard[88]){ panswitch=!panswitch; IN_UserInput(1, &gvar); } \\r
TAIL_FUNCTIONKEYFUNCTIONS0EXE\r
if(gvar.in.inst->Keyboard[sc_F9]){ dbg_pagenorendermap=!dbg_pagenorendermap; IN_UserInput(1, &gvar); }\r
#endif\r
\r
+/*#define MAPDEBUGFUNCTIONS\r
+#ifdef __DEBUG_MAP__\r
+#undef MAPDEBUGFUNCTIONS\r
+#define MAPDEBUGFUNCTIONS \\r
+ if(gvar.in.inst->Keyboard[sc_F12]){ dbg_maptext!=dbg_maptext; IN_UserInput(1, &gvar); }\r
+#endif*/\r
+\r
/*#define SPRIDEBUGFUNCTIONS\r
#ifdef __DEBUG_SPRI__\r
#undef SPRIDEBUGFUNCTIONS\r
\r
#define TAIL_FUNCTIONKEYFUNCTIONS0EXE \\r
if(gvar.in.inst->Keyboard[sc_F4]){ turboXT(12); IN_UserInput(1, &gvar); } \\r
- if(gvar.in.inst->Keyboard[68/*sc_F10*/]){ gvar.kurokku.fpscap=!gvar.kurokku.fpscap; IN_UserInput(1, &gvar); } \\r
- if(gvar.in.inst->Keyboard[sc_F8]){ gvar.video.vga_state.bgps=!gvar.video.vga_state.bgps; IN_UserInput(1, &gvar); } \\r
+ if(gvar.in.inst->Keyboard[68/*sc_F10*/]){ gvar.kurokku.fpscap=!gvar.kurokku.fpscap; IN_UserInput(1, &gvar); } \\r
+ if(gvar.in.inst->Keyboard[sc_F8]){ gvar.video.vga_state.bgps=!gvar.video.vga_state.bgps; IN_UserInput(1, &gvar); } \\r
if(gvar.in.inst->Keyboard[sc_F7]){ ZC_ShowMV(&gvar.mv, 0, 1); IN_UserInput(1, &gvar); } \\r
if(gvar.in.inst->Keyboard[sc_F6]){ ZC_ShowMV(&gvar.mv, 0, 0); IN_UserInput(1, &gvar); } \\r
- if(gvar.in.inst->Keyboard[sc_T]){ gvar.video.vga_state.rss=!gvar.video.vga_state.rss; IN_UserInput(1, &gvar); } \\r
+ if(gvar.in.inst->Keyboard[sc_T]){ gvar.video.vga_state.rss=!gvar.video.vga_state.rss; IN_UserInput(1, &gvar); } \\r
if(gvar.in.inst->Keyboard[sc_P]){ modexpdump(&gvar.video.page[0]); IN_UserInput(1, &gvar); } \\r
if(gvar.in.inst->Keyboard[sc_Y]){ dbg_delayanimation=!dbg_delayanimation; IN_UserInput(1, &gvar); } \\r
+ if(gvar.in.inst->Keyboard[sc_Q]){ VL_modexPrintTextBox(&gvar); IN_UserInput(1, &gvar); } \\r
+ if(gvar.in.inst->Keyboard[sc_W]){ VL_MemToScreen((byte __far *)&gvar, 64, 64, 16, 16, &gvar); IN_UserInput(1, &gvar); } \\r
RFDEBUGFUNCTIONS\r
+//FIZZLEFADEFUNCTION\r
\r
#define TAIL_PANKEYFUN \\r
TAIL_PANKEYFUNZC \\r
if(gvar.in.inst->Keyboard[sc_X]){ TESTBG12 } \\r
if(gvar.in.inst->Keyboard[sc_C]){ TESTBG34 } \\r
if(gvar.in.inst->Keyboard[sc_V]){ VL_PatternDraw(&gvar.video, 0, 1, 1); } \\r
- if(gvar.in.inst->Keyboard[sc_I]){ dbg_maptext=!dbg_maptext; IN_UserInput(1, &gvar); }\r
-/* if(gvar.in.inst->Keyboard[sc_PgDn]){ \\r
+ if(gvar.in.inst->Keyboard[sc_I]){ dbg_maptext=!dbg_maptext; IN_UserInput(1, &gvar); } \\r
+ if(gvar.in.inst->Keyboard[sc_PgDn]){ \\r
rotateR(gvar.video.palette, sizeof(gvar.video.palette)/sizeof(gvar.video.palette[0])); \\r
- VL_UpdatePaletteWrite(&gvar.video.palette, 0); IN_UserInput(1, &gvar); } \\r
+ VL_UpdatePaletteWrite(&gvar.video.palette, 0, &gvar); IN_UserInput(1, &gvar); } \\r
if(gvar.in.inst->Keyboard[sc_PgUp]){ \\r
rotateL(gvar.video.palette, sizeof(gvar.video.palette)/sizeof(gvar.video.palette[0])); \\r
- VL_UpdatePaletteWrite(&gvar.video.palette, 0); IN_UserInput(1, &gvar); }*/\r
+ VL_UpdatePaletteWrite(&gvar.video.palette, 0, &gvar); IN_UserInput(1, &gvar); }\r
+#ifdef __BORLANDC__\r
+#define PAL_WRITE_REG 0x03C8 /* Color register, write address */\r
+#define PAL_DATA_REG 0x03C9 /* Color register, data port */\r
+word modexPalOverscan(word col);\r
+#endif\r
\r
+void Shutdown16(global_game_variables_t *gvar),\r
+ Startup16(global_game_variables_t *gvar),\r
+ StartupCAMMPM (global_game_variables_t *gvar),\r
+ ShutdownCAMMPM (global_game_variables_t *gvar);\r
+void TL_DosLibStartup(global_game_variables_t *gvar);\r
+void TL_VidInit(global_game_variables_t *gvar);\r
+boolean FizzleFade (unsigned source, unsigned dest, unsigned width, unsigned height, unsigned frames, boolean abortable, global_game_variables_t *gvar);\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
void ClearMemory (global_game_variables_t *gvar);\r
void Quit (global_game_variables_t *gvar, char *error);\r
void turboXT(byte bakapee);\r