From 6b26ad02f33cba4db443662c3e51e622ef9b59ee Mon Sep 17 00:00:00 2001 From: sparky4 Date: Tue, 14 Jul 2015 07:54:16 -0500 Subject: [PATCH] do not pull this is for me modified: src/lib/modex16.c modified: src/lib/modex16.h --- src/lib/modex16.c | 56 ++++++++++++++++++++++++++++++++++------------- src/lib/modex16.h | 1 + 2 files changed, 42 insertions(+), 15 deletions(-) diff --git a/src/lib/modex16.c b/src/lib/modex16.c index e61df5a1..4c127c73 100644 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -969,21 +969,47 @@ byte modexgetPixel(int x, int y) } -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 bputs(word x, unsigned y, , const char *s) +{ + int j; + word s, o, t, w; + word addr = (word) l; + s=romFonts[t].seg; + o=romFonts[t].off; + + //load the letter 'A' + __asm { + MOV DI, addr + MOV SI, o + MOV ES, s + SUB AH, AH + MOV AL, c ; the letter + MOV CX, w + MUL CX + ADD SI, AX ;the address of charcter + L1: MOV AX, ES:SI + MOV DS:DI, AX + INC SI + INC DI + DEC CX + JNZ L1 + } + + for(; *s != '\0'; s++) + { + for(i=0; i>=1; + } + } + chw += 8; + } } void diff --git a/src/lib/modex16.h b/src/lib/modex16.h index 159f72ba..b69f658b 100644 --- a/src/lib/modex16.h +++ b/src/lib/modex16.h @@ -30,6 +30,7 @@ #include "src/lib/bitmap.h" #include "src/lib/planar.h" #include "src/lib/16_head.h" +#include "src/lib/16text.h" /* -========================== Types & Macros ==========================- */ #define PAGE_OFFSET(x,y) (((y)<<6)+((y)<<4)+((x)>>2)) -- 2.39.5