From 22533419042c688e3442540a21610c15b7950e47 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 23 Sep 2018 17:42:42 -0400 Subject: [PATCH] This now goes far enough for the only SG1000 game I'm testing to start up. Which hopefully gives me as much as I need to implement joypads, etc, and definitively get to just the VDP being outstanding. --- Machines/MasterSystem/MasterSystem.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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]) {