|
|
| version 1.1, 2003/10/16 17:58:36 | version 1.4, 2004/02/07 21:23:22 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "parts.h" | #include "parts.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 60 BYTE fontx1_read(const char *filename, B | Line 60 BYTE fontx1_read(const char *filename, B |
| 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); | fontdata_ank8store(work + 0x100, 0x20, 0x60); |
| CopyMemory(font + 0x82500, work + 0x500, 0x40*8); | fontdata_ank8store(work + 0x500, 0xa0, 0x40); |
| } | } |
| file_close(fh); | file_close(fh); |
| } | } |
| Line 78 BYTE fontx1_read(const char *filename, B | Line 78 BYTE fontx1_read(const char *filename, B |
| // 16dot ASCIIを読む必要があるか | // 16dot ASCIIを読む必要があるか |
| if (loading & FONT_ANK16a) { | if (loading & FONT_ANK16a) { |
| loading &= ~FONT_ANK16a; | loading &= ~FONT_ANK16a; |
| CopyMemory(font + 0x80200, work + 0x200, 0x60*16); | CopyMemory(fontrom + 0x80200, work + 0x200, 0x60*16); |
| fontdata_patch16a(); | fontdata_patch16a(); |
| } | } |
| // 16dot ANK(0x80〜)を読む必要があるか | // 16dot ANK(0x80〜)を読む必要があるか |
| if (loading & FONT_ANK16b) { | if (loading & FONT_ANK16b) { |
| loading &= ~FONT_ANK16b; | loading &= ~FONT_ANK16b; |
| CopyMemory(font + 0x80a00, work + 0xa00, 0x40*16); | CopyMemory(fontrom + 0x80a00, work + 0xa00, 0x40*16); |
| fontdata_patch16b(); | fontdata_patch16b(); |
| } | } |
| } | } |
| Line 104 BYTE fontx1_read(const char *filename, B | Line 104 BYTE fontx1_read(const char *filename, B |
| // 第一水準漢字を読み込む? | // 第一水準漢字を読み込む? |
| if (loading & FONT_KNJ1) { | if (loading & FONT_KNJ1) { |
| loading &= ~FONT_KNJ1; | loading &= ~FONT_KNJ1; |
| x1knjcpy(font, work, 0x01, 0x30); | x1knjcpy(fontrom, work, 0x01, 0x30); |
| fontdata_patchjis(); | fontdata_patchjis(); |
| } | } |
| // 第二水準を読む必要はある? | // 第二水準を読む必要はある? |
| if (loading & FONT_KNJ2) { | if (loading & FONT_KNJ2) { |
| loading &= ~FONT_KNJ2; | loading &= ~FONT_KNJ2; |
| x1knjcpy(font, work, 0x31, 0x50); | x1knjcpy(fontrom, work, 0x31, 0x50); |
| } | } |
| } | } |
| file_close(fh); | file_close(fh); |