|
|
| version 1.9, 2004/03/28 19:50:25 | version 1.13, 2005/02/04 05:32:24 |
|---|---|
| Line 27 static void cgwindowset(CGROM cr) { | Line 27 static void cgwindowset(CGROM cr) { |
| cgwindow.writable |= 1; | cgwindow.writable |= 1; |
| high += cr->lr; | high += cr->lr; |
| } | } |
| else if ((code >= 0x08) && (code < 0x0c)) { | else if ((code >= 0x09) && (code < 0x0c)) { // ver0.78 |
| if (cr->lr) { | if (cr->lr) { |
| high = low; | high = low; |
| } | } |
| Line 62 static void IOOUTCALL cgrom_oa1(UINT por | Line 62 static void IOOUTCALL cgrom_oa1(UINT por |
| CGROM cr; | CGROM cr; |
| // TRACEOUT(("%.4x:%.2x [%.4x:%.4x]", port, dat, CPU_CS, CPU_IP)); | |
| cr = &cgrom; | cr = &cgrom; |
| cr->code = (dat << 8) | (cr->code & 0xff); | cr->code = (dat << 8) | (cr->code & 0xff); |
| cgwindowset(cr); | cgwindowset(cr); |
| Line 73 static void IOOUTCALL cgrom_oa3(UINT por | Line 74 static void IOOUTCALL cgrom_oa3(UINT por |
| CGROM cr; | CGROM cr; |
| // TRACEOUT(("%.4x:%.2x [%.4x:%.4x]", port, dat, CPU_CS, CPU_IP)); | |
| cr = &cgrom; | cr = &cgrom; |
| cr->code = (cr->code & 0xff00) | dat; | cr->code = (cr->code & 0xff00) | dat; |
| cgwindowset(cr); | cgwindowset(cr); |
| Line 109 static REG8 IOINPCALL cgrom_ia9(UINT por | Line 111 static REG8 IOINPCALL cgrom_ia9(UINT por |
| CGROM cr; | CGROM cr; |
| const BYTE *ptr; | const BYTE *ptr; |
| int type; | |
| cr = &cgrom; | cr = &cgrom; |
| ptr = fontrom; | ptr = fontrom; |
| TRACEOUT(("read code = %.4x", cr->code)); | type = cr->code & 0x00ff; |
| if ((cr->code & 0x00fc) == 0x0008) { | if ((type >= 0x09) && (type < 0x0c)) { // ver0.78 |
| if (cr->lr) { | if (!cr->lr) { |
| ptr += (cr->code & 0x7f7f) << 4; | ptr += (cr->code & 0x7f7f) << 4; |
| return(ptr[cr->line & 0x0f]); | return(ptr[cr->line & 0x0f]); |
| } | } |