Implementing SMC headers and starting to implement LoRom mapping

This commit is contained in:
AnonymusRaccoon
2020-02-04 13:37:14 +01:00
parent 8261c273b2
commit 5d766f3200
5 changed files with 19 additions and 6 deletions
+5
View File
@@ -79,5 +79,10 @@ namespace ComSquare::Memory
this->_mirrorComponents(console, i);
// TODO should map SRam, cartridge etc via the mapping mode of the cartridge.
if (console.cartridge->header.mappingMode & Cartridge::LoRom) {
console.cartridge->setMemoryRegion(0x80, 0xFF, 0x8000, 0xFFFF);
this->_memoryAccessors.push_back(console.cartridge);
}
}
}