|
|
| version 1.2, 2004/01/05 06:05:11 | version 1.7, 2007/11/03 00:00:20 |
|---|---|
| Line 36 static void IOOUTCALL epsonio_o043d(UINT | Line 36 static void IOOUTCALL epsonio_o043d(UINT |
| bankselect(); | bankselect(); |
| } | } |
| break; | break; |
| case 0x10: | |
| CPU_ITFBANK = 1; | |
| break; | |
| case 0x12: | |
| CPU_ITFBANK = 0; | |
| break; | |
| } | } |
| (void)port; | |
| } | } |
| static void IOOUTCALL epsonio_o043f(UINT port, REG8 dat) { | static void IOOUTCALL epsonio_o043f(UINT port, REG8 dat) { |
| Line 50 static void IOOUTCALL epsonio_o043f(UINT | Line 59 static void IOOUTCALL epsonio_o043f(UINT |
| epsonio.bankioen |= 0x01; | epsonio.bankioen |= 0x01; |
| break; | break; |
| } | } |
| (void)port; | |
| } | } |
| static void IOOUTCALL epsonio_oc07(UINT port, REG8 dat) { | static void IOOUTCALL epsonio_oc07(UINT port, REG8 dat) { |
| TRACEOUT(("EPSON ROM MODE - %.2x", dat)); | |
| switch(dat) { | switch(dat) { |
| case 0x2a: // 0010|1010 | case 0x2a: // 0010|1010 |
| case 0x2b: | case 0x2b: |
| Line 78 static void IOOUTCALL epsonio_oc07(UINT | Line 90 static void IOOUTCALL epsonio_oc07(UINT |
| CopyMemory(mem + 0x1f8000, mem + 0x1c0000, 0x08000); | CopyMemory(mem + 0x1f8000, mem + 0x1c0000, 0x08000); |
| break; | break; |
| } | } |
| (void)port; | |
| } | } |
| static REG8 IOINPCALL epsonio_ic03(UINT port) { | static REG8 IOINPCALL epsonio_ic03(UINT port) { |
| Line 95 static REG8 IOINPCALL epsonio_ic13(UINT | Line 108 static REG8 IOINPCALL epsonio_ic13(UINT |
| // ---- I/F | // ---- I/F |
| void epsonio_reset(void) { | void epsonio_reset(const NP2CFG *pConfig) { |
| epsonio.cpumode = 'R'; | epsonio.cpumode = 'R'; |
| (void)pConfig; | |
| } | } |
| void epsonio_bind(void) { | void epsonio_bind(void) { |
| if (pc.model & PCMODEL_EPSON) { | if (pccore.model & PCMODEL_EPSON) { |
| iocore_attachout(0x043d, epsonio_o043d); | iocore_attachout(0x043d, epsonio_o043d); |
| iocore_attachout(0x043f, epsonio_o043f); | iocore_attachout(0x043f, epsonio_o043f); |
| iocore_attachout(0x0c07, epsonio_oc07); | iocore_attachout(0x0c07, epsonio_oc07); |