mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-26 15:32:04 +00:00
Reenable MaserSystem code.
Accidental/poor branch management is evidenced here.
This commit is contained in:
parent
eff24a8726
commit
5c836604c0
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user