X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16text.c;h=f2c06580595361ac97197f5c6802820af3862368;hb=579be865a2f1d2a84d5295506f3e8ea9815d11af;hp=59420b5c4be76289e7f5486bfb0885cadc0a585e;hpb=562a5008d417d162e2f133b2eea7e5bb37a3070c;p=16.git diff --git a/src/lib/16text.c b/src/lib/16text.c old mode 100644 new mode 100755 index 59420b5c..f2c06580 --- a/src/lib/16text.c +++ b/src/lib/16text.c @@ -1,14 +1,38 @@ -#include "16text.h" +/* Project 16 Source Code~ + * Copyright (C) 2012-2020 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * + * This file is part of Project 16. + * + * Project 16 is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * Project 16 is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see , or + * write to the Free Software Foundation, Inc., 51 Franklin Street, + * Fifth Floor, Boston, MA 02110-1301 USA. + * + */ + +#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 @@ -18,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; @@ -34,4 +60,5 @@ void textInit() { romFonts[ROM_FONT_8x8_LOW].charSize=8; romFonts[ROM_FONT_8x8_HIGH].charSize=8; romFonts[ROM_FONT_8x16].charSize=16; + //romFontsData }