1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-06 01:28:57 +00:00

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.
This commit is contained in:
Thomas Harte 2018-09-23 17:42:42 -04:00
parent e155dc8d6e
commit 2253341904

View File

@ -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<int>(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]) {