X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Flib%2F16text.c;h=81b71d98cc40594656ef25aed90a63cdca353779;hb=7fb5f7966cbefa772de943ca77db34fd05d18d37;hp=fc7c775f9a26c124ccb21b912fe6b9896f0cf903;hpb=351c4812d3c1db4a33cd6f2c166456d6b0b757e0;p=16.git
diff --git a/src/lib/16text.c b/src/lib/16text.c
old mode 100644
new mode 100755
index fc7c775f..81b71d98
--- a/src/lib/16text.c
+++ b/src/lib/16text.c
@@ -1,36 +1,38 @@
-/* Project 16 Source Code~
- * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
- *
- * 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.
- *
- */
-
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669
+ *
+ * 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 "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;
__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;
@@ -56,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
}