--- np2/bios/bios.c 2004/02/19 03:04:01 1.41 +++ np2/bios/bios.c 2004/02/22 00:05:56 1.45 @@ -83,7 +83,7 @@ static void bios_reinitbyswitch(void) { mem[MEMB_PRXDUPD] = prxdupd; biosflag = 0x20; - if (pccore.cpumode & CPUMODE_8MHz) { + if (pccore.cpumode & CPUMODE_8MHZ) { biosflag |= 0x80; } biosflag |= mem[0xa3fea] & 7; @@ -200,7 +200,7 @@ void bios_initialize(void) { bios_vectorset(); if (!biosrom) { - lio_init(); + lio_initialize(); } SETBIOSMEM16(0xfd800, 0xcb90); @@ -288,13 +288,8 @@ UINT MEMCALL biosfunc(UINT32 adrs) { UINT16 bootseg; if ((CPU_ITFBANK) && (adrs >= 0xf8000) && (adrs < 0x100000)) { -#if 1 // for epson ITF + // for epson ITF return(0); -#else - CPU_IP--; - CPU_REMCLOCK = -1; - return(1); -#endif } switch(adrs) { @@ -368,6 +363,7 @@ UINT MEMCALL biosfunc(UINT32 adrs) { case BIOS_BASE + BIOSOFST_1f: CPU_REMCLOCK -= 200; + TRACEOUT(("unsupport protect bios")); return(1); case BIOS_BASE + BIOSOFST_WAIT: @@ -441,9 +437,17 @@ UINT MEMCALL biosfunc(UINT32 adrs) { return(0); } - if ((adrs >= 0xf9a00) && (adrs < 0x0f9a24)) { - if (!(adrs & 1)) { - bios_lio((BYTE)((adrs - 0xf9a00) >> 1)); + if ((adrs >= 0xf9a00) && (adrs < 0x0f9a44)) { + if (!(adrs & 3)) { + CPU_REMCLOCK -= 500; + bios_lio((REG8)((adrs - 0xf9a00) >> 2)); + } + else { + if (nevent_iswork(NEVENT_GDCSLAVE)) { + CPU_IP--; + CPU_REMCLOCK = -1; + return(1); + } } return(0); }