--- np2/font/fontdata.c 2003/11/15 07:10:02 1.2 +++ np2/font/fontdata.c 2005/02/07 14:46:10 1.5 @@ -1,5 +1,5 @@ #include "compiler.h" -#include "memory.h" +#include "cpucore.h" #include "font.h" #include "fontdata.h" #include "fontdata.res" @@ -18,10 +18,10 @@ const char x1knjname[] = "FNT1616.X1"; const char x68kfontname[] = "CGROM.DAT"; -static void patch29(UINT jish, const BYTE *src) { +static void patch29(UINT jish, const UINT8 *src) { UINT i; - BYTE *p; + UINT8 *p; p = fontrom + 0x21000 + (jish << 4); for (i=0x21; i<0x7f; i++) { @@ -35,8 +35,8 @@ static void patch2c(void) { UINT i; UINT j; -const BYTE *p; - BYTE *q; +const UINT8 *p; + UINT8 *q; p = fontdata_2c; q = fontrom + 0x240c0; @@ -53,6 +53,18 @@ const BYTE *p; // ---- +void fontdata_ank8store(const UINT8 *ptr, UINT pos, UINT cnt) { + + UINT8 *dat; + + dat = fontrom + 0x82000 + (pos * 16); + while(cnt--) { + CopyMemory(dat, ptr, 8); + dat += 16; + ptr += 8; + } +} + void fontdata_patch16a(void) { CopyMemory(fontrom + 0x80000, fontdata_16 + 0*32*16, 32*16);