From: sparky4 Date: Thu, 17 Aug 2017 21:57:15 +0000 (-0500) Subject: ok the print buffer stuff should work better now in exmmtest.exe X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=adae92394ccbbee3d14fc63dcf1a90f38b85c8da;p=16.git ok the print buffer stuff should work better now in exmmtest.exe --- diff --git a/src/exmmtest.c b/src/exmmtest.c index 7bf0ef01..62fdd32e 100755 --- a/src/exmmtest.c +++ b/src/exmmtest.c @@ -105,6 +105,7 @@ main(int argc, char *argv[]) #ifdef INITBBUF INITBBUF #endif + //0000mmblocktype far *scan; char bakapee1[64] = FILENAME_1; char bakapee2[64] = FILENAME_2; @@ -177,7 +178,18 @@ PRINTBB; KEYP printf("====================================load end===================================\n"); } #ifdef BUFFDUMP - printf("contents of the buffer\n[\n%s\n]\n", BBUFSTRING); + printf("contents of the buffer\n[\n%.*s\n]\n", strlen(BBUFSTRING), BBUFSTRING); +#if 0 +//0000 + scan = gvar.mm.mmhead; + while (scan->useptr != &BBUFNAME && scan) + { + scan = scan->next; + } + printf("\n %Fp %Fp\n", scan->useptr, &BBUFNAME); + printf("\nstrlen of buffer = %zu\n", strlen(BBUFSTRING)); + printf("length of buffer = %lu\n", scan->scan->length); +#endif #endif #ifdef PRINTBBDUMP PRINTBB; @@ -209,6 +221,7 @@ PRINTBB; KEYP #ifndef NOVID VGAmodeX(8, 0, &gvar); VL_LoadPalFileCore(&gvar.video.palette, &gvar); + VL_ClearVideo (0); modexHiganbanaPageSetup(&gvar); gvar.video.page[0].dx = gvar.video.page[0].dy = 0; // VL_modexPalScramble(&gvar.video.palette); diff --git a/src/exmmtest.h b/src/exmmtest.h index 463932eb..9d879240 100755 --- a/src/exmmtest.h +++ b/src/exmmtest.h @@ -57,7 +57,7 @@ #define KEYP IN_Shutdown(&gvar); printf("\n\npress any key to continue!\n"); getch(); IN_Startup(&gvar); -#define BBUFNAME gvar.mm.bufferseg//bigbuffer +#define BBUFNAME gvar.mm.bufferseg //#define INITBBUF static memptr BBUFNAME; #define BBUFPTR MEMPTRCONV BBUFNAME