--- np2/bios/bios.c 2003/12/10 13:52:57 1.13 +++ np2/bios/bios.c 2003/12/25 19:26:55 1.17 @@ -1,7 +1,6 @@ #include "compiler.h" #include "dosio.h" #include "cpucore.h" -#include "memory.h" #include "pccore.h" #include "iocore.h" #include "bios.h" @@ -82,7 +81,7 @@ static void bios_reinitbyswitch(void) { } gdcs.textdisp |= GDCSCRN_EXT; - if ((pc.model >= PCMODEL_VX) && (usesound & 0x7e)) { + if (((pc.model & PCMODELMASK) >= PCMODEL_VX) && (usesound & 0x7e)) { iocore_out8(0x188, 0x27); iocore_out8(0x18a, 0x3f); } @@ -191,7 +190,7 @@ if (fh != FILEH_INVALID) { file_close(fh); } #endif - if (!biosrom) { + if ((!biosrom) && (!(pc.model & PCMODEL_EPSON))) { CopyMemory(mem + 0xe8dd8, neccheck, 0x25); pos = LOADINTELWORD(itfrom + 2); CopyMemory(mem + 0xf538e, itfrom + pos, 0x27); @@ -229,6 +228,7 @@ static void bios_boot(void) { else { CPU_SP = GETBIOSMEM16(0x00404); CPU_SS = GETBIOSMEM16(0x00406); + TRACEOUT(("Protect Disable... SS:SP = %.4x:%.4x", CPU_SS, CPU_SP)); } }