X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftest.c;h=dfbc7de857e89c923f66948880f643870382fc4b;hb=989f287818c93cf9b1ff96c13e66720571210513;hp=2c698a63327d5217413cfd335b6911a3ca88a045;hpb=9fae6d1ef0ebd44690958e072f400edde9262208;p=16.git diff --git a/src/test.c b/src/test.c index 2c698a63..dfbc7de8 100755 --- a/src/test.c +++ b/src/test.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 + * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -21,10 +21,12 @@ */ #include -#include "src/lib/modex16.h" +#include "src/lib/16_vl.h" #include "src/lib/16_in.h" #include "src/lib/scroll16.h" +#include "src/lib/bakapee.h" +static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */ global_game_variables_t gvar; player_t player[MaxPlayers]; map_view_t mv[4]; @@ -38,11 +40,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(); @@ -70,9 +73,7 @@ void main(int argc, char *argv[]) #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 - - /* load our palette */ - modexLoadPalFile("data/default.pal", &pal2); + _DEBUGF("Serial debug output printf test %u %u %u\n",1U,2U,3U); /* save the palette */ pal = modexNewPal(); @@ -88,6 +89,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(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]); }