From f847ea51adf7d86a51560411005a3c535ec41325 Mon Sep 17 00:00:00 2001 From: "K.Ohta" Date: Thu, 23 May 2019 04:28:42 +0900 Subject: [PATCH] [VM][PC9801] . --- source/src/vm/mame/emu/cpu/i386/i386.c | 2 +- source/src/vm/pc9801/membus.cpp | 6 ++++++ source/src/vm/pc9801/pc9801.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/source/src/vm/mame/emu/cpu/i386/i386.c b/source/src/vm/mame/emu/cpu/i386/i386.c index 3ae94ea00..f45273ca5 100644 --- a/source/src/vm/mame/emu/cpu/i386/i386.c +++ b/source/src/vm/mame/emu/cpu/i386/i386.c @@ -346,7 +346,7 @@ static UINT32 i386_get_stack_ptr(i386_state* cpustate, UINT8 privilege) cpustate->VIF = (f & 0x80000) ? 1 : 0; cpustate->VIP = (f & 0x100000) ? 1 : 0; cpustate->ID = (f & 0x200000) ? 1 : 0; - //if(((cpustate->eflags & 0x3000) != (f & 0x3000)) && ((f & 0x3000) == 0)) logerror("SET IOPL to 0 PC=%08X\n", cpustate->pc); + if(((cpustate->eflags & 0x3000) != (f & 0x3000)) && ((f & 0x3000) == 0)) logerror("SET IOPL to 0 PC=%08X\n", cpustate->pc); // if(old_vm != cpustate->VM) logerror("Change VM flag to %d at %08X\n", cpustate->VM, cpustate->prev_pc); //if(PROTECTED_MODE) { cpustate->eflags = f; diff --git a/source/src/vm/pc9801/membus.cpp b/source/src/vm/pc9801/membus.cpp index b82ede208..000c98c2c 100644 --- a/source/src/vm/pc9801/membus.cpp +++ b/source/src/vm/pc9801/membus.cpp @@ -286,6 +286,7 @@ void MEMBUS::write_io8(uint32_t addr, uint32_t data) if(nec_ems_selected) { nec_ems_selected = false; update_nec_ems(); + //update_bios(); } #else // #if !defined(SUPPORT_HIRESO) @@ -300,6 +301,7 @@ void MEMBUS::write_io8(uint32_t addr, uint32_t data) if(!nec_ems_selected) { nec_ems_selected = true; update_nec_ems(); +// update_bios(); } #else // #if !defined(SUPPORT_HIRESO) @@ -316,6 +318,7 @@ void MEMBUS::write_io8(uint32_t addr, uint32_t data) if(sasi_bios_ram_selected) { sasi_bios_ram_selected = false; update_sasi_bios(); + //update_bios(); } } #endif @@ -325,6 +328,7 @@ void MEMBUS::write_io8(uint32_t addr, uint32_t data) if(scsi_bios_ram_selected) { scsi_bios_ram_selected = false; update_scsi_bios(); + //update_bios(); } //} #endif @@ -336,6 +340,7 @@ void MEMBUS::write_io8(uint32_t addr, uint32_t data) if(!sasi_bios_ram_selected) { sasi_bios_ram_selected = true; update_sasi_bios(); + //update_bios(); } } #endif @@ -347,6 +352,7 @@ void MEMBUS::write_io8(uint32_t addr, uint32_t data) if(!scsi_bios_ram_selected) { scsi_bios_ram_selected = true; update_scsi_bios(); + //update_bios(); } } #endif diff --git a/source/src/vm/pc9801/pc9801.h b/source/src/vm/pc9801/pc9801.h index 4d4a1d615..07dece0a7 100644 --- a/source/src/vm/pc9801/pc9801.h +++ b/source/src/vm/pc9801/pc9801.h @@ -192,7 +192,7 @@ #define SUPPORT_EGC #define HAS_UPD4990A #endif - #if !defined(SUPPORT_HIRESO) /*&& !(defined(HAS_I386) || defined(HAS_I486) || defined(HAS_PENTIUM)) *//*&& !defined(SUPPORT_32BIT_ADDRESS)*/ + #if !defined(SUPPORT_HIRESO) /*&& !(defined(HAS_I386) || defined(HAS_I486) || defined(HAS_PENTIUM))*/ /*&& !defined(SUPPORT_32BIT_ADDRESS)*/ #define SUPPORT_NEC_EMS #endif #define SUPPORT_SASI_IF -- 2.11.0