Fix for Kishin Douji Zenki - Tenchi Meidou
This commit is contained in:
byuu 2019-10-31 10:56:16 +09:00
parent 2b9a22e1d8
commit 454b90be24
2 changed files with 15 additions and 6 deletions

View File

@ -29,7 +29,7 @@ using namespace nall;
namespace Emulator { namespace Emulator {
static const string Name = "bsnes"; static const string Name = "bsnes";
static const string Version = "112.5"; static const string Version = "112.6";
static const string Author = "byuu"; static const string Author = "byuu";
static const string License = "GPLv3"; static const string License = "GPLv3";
static const string Website = "https://byuu.org"; static const string Website = "https://byuu.org";

View File

@ -14,11 +14,20 @@ auto SMP::idle() -> void {
} }
auto SMP::read(uint16 address) -> uint8 { auto SMP::read(uint16 address) -> uint8 {
wait(address, 0); //Kishin Douji Zenki - Tenchi Meidou requires bus hold delays on CPU I/O reads.
uint8 data = readRAM(address); //smp_mem_access_times requires no bus hold delays on APU RAM reads.
if((address & 0xfff0) == 0x00f0) data = readIO(address); if((address & 0xfffc) == 0x00f4) {
//wait(address, 0); wait(address, 1);
return data; uint8 data = readRAM(address);
if((address & 0xfff0) == 0x00f0) data = readIO(address);
wait(address, 1);
return data;
} else {
wait(address, 0);
uint8 data = readRAM(address);
if((address & 0xfff0) == 0x00f0) data = readIO(address);
return data;
}
} }
auto SMP::write(uint16 address, uint8 data) -> void { auto SMP::write(uint16 address, uint8 data) -> void {