|
|
| version 1.1.1.1, 2003/10/16 17:58:36 | version 1.3, 2003/12/12 01:04:40 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "dosio.h" | #include "dosio.h" |
| #include "memory.h" | #include "cpucore.h" |
| #include "font.h" | #include "font.h" |
| #include "fontdata.h" | #include "fontdata.h" |
| Line 86 BYTE fontfm7_read(const char *filename, | Line 86 BYTE fontfm7_read(const char *filename, |
| if (fh != FILEH_INVALID) { | if (fh != FILEH_INVALID) { |
| if (file_read(fh, work, 2048) == 2048) { | if (file_read(fh, work, 2048) == 2048) { |
| loading &= ~FONT_ANK8; | loading &= ~FONT_ANK8; |
| CopyMemory(font + 0x82100, work + 0x100, 0x60*8); | CopyMemory(fontrom + 0x82100, work + 0x100, 0x60*8); |
| CopyMemory(font + 0x82500, work + 0x500, 0x40*8); | CopyMemory(fontrom + 0x82500, work + 0x500, 0x40*8); |
| } | } |
| file_close(fh); | file_close(fh); |
| } | } |
| Line 104 BYTE fontfm7_read(const char *filename, | Line 104 BYTE fontfm7_read(const char *filename, |
| // 16dot ASCIIを読み込む? | // 16dot ASCIIを読み込む? |
| if (loading & FONT_ANK16a) { | if (loading & FONT_ANK16a) { |
| loading &= ~FONT_ANK16a; | loading &= ~FONT_ANK16a; |
| fm7ankcpy(font + 0x80200, work, 0x20, 0x7f); | fm7ankcpy(fontrom + 0x80200, work, 0x20, 0x7f); |
| fontdata_patch16a(); | fontdata_patch16a(); |
| } | } |
| // 第一水準漢字を読み込む? | // 第一水準漢字を読み込む? |
| if (loading & FONT_KNJ1) { | if (loading & FONT_KNJ1) { |
| loading &= ~FONT_KNJ1; | loading &= ~FONT_KNJ1; |
| fm7knjcpy(font, work, 0x01, 0x30); | fm7knjcpy(fontrom, work, 0x01, 0x30); |
| fontdata_patchjis(); | fontdata_patchjis(); |
| } | } |
| } | } |