X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Ftest.c;h=098c12a7f71833fdb11d8615cfbca93b84fed013;hb=f43fd4f3d454d992ea42dfe58b584ba1dd322023;hp=515c5f63a39400b59bbbfa05629131cbe28123f1;hpb=b40411c754cec4dc88f6a4183f475584b9205a2b;p=16.git diff --git a/src/test.c b/src/test.c index 515c5f63..098c12a7 100755 --- a/src/test.c +++ b/src/test.c @@ -24,10 +24,11 @@ #include "src/lib/modex16.h" #include "src/lib/16_in.h" #include "src/lib/scroll16.h" +#include "src/lib/bakapee.h" global_game_variables_t gvar; player_t player[MaxPlayers]; -map_view_t mv[2]; +map_view_t mv[4]; pan_t pan; void main(int argc, char *argv[]) @@ -38,11 +39,12 @@ void main(int argc, char *argv[]) byte *pal, *pal2; sword bakapee; + word colo=LGQ; + //argument if(argv[1]) bakapee = atoi(argv[1]); else bakapee = 1; - // DOSLIB: check our environment probe_dos(); @@ -64,8 +66,13 @@ void main(int argc, char *argv[]) return; } - /* load our palette */ - modexLoadPalFile("data/default.pal", &pal2); + if (_DEBUG_INIT() == 0) { +#ifdef DEBUGSERIAL + printf("WARNING: Failed to initialize DEBUG output\n"); +#endif + } + _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); /* save the palette */ pal = modexNewPal(); @@ -81,6 +88,12 @@ void main(int argc, char *argv[]) VGAmodeX(bakapee, 1, &gvar); modexPalBlack(); + /* load our palette */ + modexLoadPalFile("data/default.pal", &pal2); + + /* overscan show */ + //modexPalOverscan(44+1); + /* set up the page, but with 16 pixels on all borders in offscreen mem */ modexHiganbanaPageSetup(&gvar.video); for(i=0;iHGQ) colo=LGQ; } - if(IN_KeyDown(4+1)){ - modexClearRegion(&gvar.video.page[1], 16, 16, gvar.video.page[1].sw, gvar.video.page[1].sh, 128); - modexClearRegion(&gvar.video.page[1], 32, 32, gvar.video.page[1].sw-32, gvar.video.page[1].sh-32, 42); - modexClearRegion(&gvar.video.page[1], 48, 48, gvar.video.page[1].sw-64, gvar.video.page[1].sh-64, 128); - } - //} - if(IN_KeyDown(2)) pan.pn=0; - if(IN_KeyDown(3)) pan.pn=1; +// if(i>PAL_SIZE) i=0; + }//9 if(IN_KeyDown(25)){ modexpdump(&gvar.video.page[pan.pn]); + IN_UserInput(1,1); }//p modexShowPage(&gvar.video.page[pan.pn]); }