diff --git a/Machines/MasterSystem/MasterSystem.cpp b/Machines/MasterSystem/MasterSystem.cpp index d539e61ed..6dd3e0070 100644 --- a/Machines/MasterSystem/MasterSystem.cpp +++ b/Machines/MasterSystem/MasterSystem.cpp @@ -49,6 +49,11 @@ class ConcreteMachine: pointer = nullptr; } + // Take a copy of the cartridge and place it into memory. + cartridge_ = target.media.cartridges[0]->get_segments()[0].data; + map(read_pointers_, cartridge_.data(), static_cast(cartridge_.size()), 0x0000, 0xc000); + + // Establish the BIOS (if relevant) and RAM. if(target.model == Analyser::Static::Sega::Target::Model::MasterSystem) { const auto roms = rom_fetcher("MasterSystem", {"bios.sms"}); if(!roms[0]) {