--- np2/bios/bios.c 2004/03/31 19:23:37 1.62 +++ np2/bios/bios.c 2004/06/04 16:11:02 1.66 @@ -20,8 +20,6 @@ #define BIOS_SIMULATE - BOOL biosrom = FALSE; - static const char neccheck[] = "Copyright (C) 1983 by NEC Corporation"; typedef struct { @@ -195,6 +193,7 @@ static void bios_screeninit(void) { void bios_initialize(void) { + BOOL biosrom; char path[MAX_PATH]; FILEH fh; UINT i; @@ -210,6 +209,7 @@ void bios_initialize(void) { } if (biosrom) { TRACEOUT(("load bios.rom")); + pccore.rom |= PCROM_BIOS; // PnP BIOSを潰す for (i=0; i<0x10000; i+=0x10) { tmp = LOADINTELDWORD(mem + 0xf0000 + i); @@ -350,6 +350,13 @@ UINT MEMCALL biosfunc(UINT32 adrs) { return(1); case BIOS_BASE + BIOSOFST_INIT: // ブート +#if 1 // for RanceII + bios_memclear(); +#endif + bios_vectorset(); +#if 1 + bios0x09_init(); +#endif bios_reinitbyswitch(); bios_vectorset(); bios_screeninit(); @@ -393,7 +400,7 @@ UINT MEMCALL biosfunc(UINT32 adrs) { case BIOS_BASE + BIOSOFST_CMT: CPU_REMCLOCK -= 200; bios0x1a_cmt(); - return(1); + return(0); // return(1); case BIOS_BASE + BIOSOFST_PRT: CPU_REMCLOCK -= 200;