Solving a bug with the bus when enabling/disabling a debugger

This commit is contained in:
Anonymus Raccoon
2020-04-28 21:20:16 +02:00
parent 686b70dbfd
commit 88a6c5a096
6 changed files with 40 additions and 5 deletions

View File

@@ -56,6 +56,8 @@ namespace ComSquare::Memory
void MemoryBus::mapComponents(SNES &console)
{
this->_memoryAccessors.clear();
// The WRam and PU registers are always mapped at the same address no matter the mapping mode.
console.wram->setMemoryRegion(0x7E, 0x7F, 0x0000, 0xFFFF);
this->_memoryAccessors.push_back(console.wram);