1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-23 20:29:42 +00:00

Correct Apple IIe and Enhanced IIe startup.

This commit is contained in:
Thomas Harte 2021-06-04 22:48:08 -04:00
parent 505d84f336
commit b6b3d845a3

View File

@ -419,6 +419,12 @@ template <Analyser::Static::AppleII::Target::Model model> class ConcreteMachine:
}
rom_ = std::move(roms.find(system)->second);
// The IIe and Enhanced IIe ROMs often distributed are oversized; trim if necessary.
if(system == ROM::Name::AppleIIe || system == ROM::Name::AppleIIEnhancedE) {
if(rom_.size() > 16128) {
rom_.erase(rom_.begin(), rom_.end() - off_t(16128));
}
}
video_.set_character_rom(roms.find(character)->second);
// Set up the default memory blocks. On a II or II+ these values will never change.