|
|
| version 1.1, 2003/10/16 17:57:50 | version 1.4, 2003/12/08 00:55:32 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "dosio.h" | #include "memory.h" |
| #include "pccore.h" | #include "pccore.h" |
| #include "iocore.h" | #include "iocore.h" |
| #include "memory.h" | |
| #include "font.h" | #include "font.h" |
| Line 42 static void cgwindowset(CGROM cr) { | Line 41 static void cgwindowset(CGROM cr) { |
| // ---- I/O | // ---- I/O |
| // write charactor code low | // write charactor code low |
| static void IOOUTCALL cgrom_oa1(UINT port, BYTE dat) { | static void IOOUTCALL cgrom_oa1(UINT port, REG8 dat) { |
| CGROM cr; | CGROM cr; |
| Line 53 static void IOOUTCALL cgrom_oa1(UINT por | Line 52 static void IOOUTCALL cgrom_oa1(UINT por |
| } | } |
| // write charactor code high | // write charactor code high |
| static void IOOUTCALL cgrom_oa3(UINT port, BYTE dat) { | static void IOOUTCALL cgrom_oa3(UINT port, REG8 dat) { |
| CGROM cr; | CGROM cr; |
| Line 64 static void IOOUTCALL cgrom_oa3(UINT por | Line 63 static void IOOUTCALL cgrom_oa3(UINT por |
| } | } |
| // write charactor line | // write charactor line |
| static void IOOUTCALL cgrom_oa5(UINT port, BYTE dat) { | static void IOOUTCALL cgrom_oa5(UINT port, REG8 dat) { |
| CGROM cr; | CGROM cr; |
| Line 76 static void IOOUTCALL cgrom_oa5(UINT por | Line 75 static void IOOUTCALL cgrom_oa5(UINT por |
| } | } |
| // CG write pattern | // CG write pattern |
| static void IOOUTCALL cgrom_oa9(UINT port, BYTE dat) { | static void IOOUTCALL cgrom_oa9(UINT port, REG8 dat) { |
| CGROM cr; | CGROM cr; |
| cr = &cgrom; | cr = &cgrom; |
| if ((cr->code & 0x007e) == 0x0056) { | if ((cr->code & 0x007e) == 0x0056) { |
| font[((cr->code & 0x7f7f) << 4) + | fontrom[((cr->code & 0x7f7f) << 4) + |
| cr->lr + cr->line] = dat; | cr->lr + cr->line] = (UINT8)dat; |
| cgwindow.writable |= 0x80; | cgwindow.writable |= 0x80; |
| } | } |
| (void)port; | (void)port; |
| } | } |
| static BYTE IOINPCALL cgrom_ia9(UINT port) { | static REG8 IOINPCALL cgrom_ia9(UINT port) { |
| CGROM cr; | CGROM cr; |
| BYTE *ptr; | const BYTE *ptr; |
| cr = &cgrom; | cr = &cgrom; |
| ptr = font; | ptr = fontrom; |
| if (cr->code & 0xff00) { | if (cr->code & 0xff00) { |
| ptr += (cr->code & 0x7f7f) << 4; | ptr += (cr->code & 0x7f7f) << 4; |
| ptr += cr->lr; | ptr += cr->lr; |