X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16text.c;h=3782bacce177da9107c2f7236c4cd9adf4fd9ade;hb=6021fc3f27b895d382fbd30488ead35657e39196;hp=62b581e8c3d2ce70411dbe332baaa936a2ffb35f;hpb=81a89657d4c71baad7e1a6c65c166fcca6af8bf8;p=16.git diff --git a/src/lib/16text.c b/src/lib/16text.c index 62b581e8..3782bacc 100755 --- a/src/lib/16text.c +++ b/src/lib/16text.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2015 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;