diff --git a/Machines/MasterSystem/MasterSystem.cpp b/Machines/MasterSystem/MasterSystem.cpp index 9c0bf61e4..f43e999ea 100644 --- a/Machines/MasterSystem/MasterSystem.cpp +++ b/Machines/MasterSystem/MasterSystem.cpp @@ -120,11 +120,11 @@ class ConcreteMachine: if(!target.media.cartridges.empty()) { cartridge_ = target.media.cartridges[0]->get_segments()[0].data; } -// if(cartridge_.size() < 48*1024) { -// std::size_t new_space = 48*1024 - cartridge_.size(); -// cartridge_.resize(48*1024); -// memset(&cartridge_[48*1024 - new_space], 0xff, new_space); -// } + if(cartridge_.size() < 48*1024) { + std::size_t new_space = 48*1024 - cartridge_.size(); + cartridge_.resize(48*1024); + memset(&cartridge_[48*1024 - new_space], 0xff, new_space); + } if(paging_scheme_ == Target::PagingScheme::Codemasters) { // The Codemasters cartridges start with pages 0, 1 and 0 again initially visible.