X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16text.c;h=3782bacce177da9107c2f7236c4cd9adf4fd9ade;hb=7546211d6de190a33b63eca728777c8b79d00550;hp=95b307ef972ea4dd817de28b719cae089459360f;hpb=b944e5a4e57c1a1ba44dff4ffafdee4edd5b5d99;p=16.git diff --git a/src/lib/16text.c b/src/lib/16text.c index 95b307ef..3782bacc 100755 --- a/src/lib/16text.c +++ b/src/lib/16text.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 + * Copyright (C) 2012-2018 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -20,17 +20,19 @@ * */ -#include "16text.h" +#include "src/lib/16text.h" /* this array holds the rom font descriptors */ font_t romFonts[4]; fontdata_t romFontsData; static void getRomFontAddr(char fontNum, int index) { - word fontSeg; - word fontOff; + word fontSeg=0; + word fontOff=0; __asm { + PUSH AX + PUSH BX PUSH BP MOV AX, 0x1130 ;I can haz font info plz? MOV BH, fontNum ; where ur fontNum @@ -40,6 +42,8 @@ static void getRomFontAddr(char fontNum, int index) { POP BP ;u can haz ur frame back! MOV fontSeg, AX ;Storage MOV fontOff, BX ;Storage + POP BX + POP AX } romFonts[index].seg = fontSeg; romFonts[index].off = fontOff;