From: sparky4 Date: Sun, 12 Jul 2015 20:49:37 +0000 (-0500) Subject: pee of baka! X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=e6e6e9d77bbfa470b37906d4160ff1164332ef40;p=16.git pee of baka! modified: 16.exe modified: maptest.exe modified: palettec.exe modified: pcxtest.exe modified: src/lib/modex16.c modified: src/lib/modex16.h modified: test.exe modified: test2.exe --- diff --git a/16.exe b/16.exe index d407dac1..a6418783 100644 Binary files a/16.exe and b/16.exe differ diff --git a/maptest.exe b/maptest.exe index ed045368..cb42cfc7 100644 Binary files a/maptest.exe and b/maptest.exe differ diff --git a/palettec.exe b/palettec.exe index 1df956b8..bdbd900d 100644 Binary files a/palettec.exe and b/palettec.exe differ diff --git a/pcxtest.exe b/pcxtest.exe index c1ec6d87..03194e16 100644 Binary files a/pcxtest.exe and b/pcxtest.exe differ diff --git a/src/lib/modex16.c b/src/lib/modex16.c index 3bf65ee4..4717b444 100644 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -942,6 +942,23 @@ no... wait.... no wwww free(pal); } +void bputs(/*bmp_t *bmp, */unsigned x, unsigned y, const char *s) +{ + byte far *font; + //bmp_t src; + + //font = bios_8x8_font(); + //src.wd = 8; + //src.ht = 8; + //src.ops = &g_ops1; + for(; *s != '\0'; s++) + { + //src.raster = font + 8 * (*s); + //blit1(&src, bmp, x, y); + x += 8; + } +} + void modexWaitBorder() { while(inp(INPUT_STATUS_1) & 8) { diff --git a/src/lib/modex16.h b/src/lib/modex16.h index bb00795b..f2161174 100644 --- a/src/lib/modex16.h +++ b/src/lib/modex16.h @@ -92,11 +92,11 @@ void modexPalUpdate(bitmap_t *bmp, word *i, word qp, word aqoffset); void modexPalUpdate1(byte *p); void modexPalUpdate0(byte *p); void chkcolor(bitmap_t *bmp, word *q, word *a, word *aa, word *z, word *i/*, word *offset*/); +void bputs(/*bmp_t *bmp, */unsigned x, unsigned y, const char *s); void modexWaitBorder(); /* -======================= Constants & Vars ==========================- */ extern byte far* VGA; /* The VGA Memory */ -//extern word text_mask[16]; #define SCREEN_SEG 0xa000 #define VIDEO_INT 0x10 #define SET_MODE 0x00 diff --git a/test.exe b/test.exe index 754df675..a6e4adf5 100644 Binary files a/test.exe and b/test.exe differ diff --git a/test2.exe b/test2.exe index 53173f24..c9401261 100644 Binary files a/test2.exe and b/test2.exe differ