1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-04-09 15:39:08 +00:00

Attempts to introduce sleeping to the Disk II.

This commit is contained in:
Thomas Harte 2018-04-29 17:52:29 -04:00
parent 10c0e687f5
commit 265bc80d44

View File

@ -230,7 +230,10 @@ class ConcreteMachine:
if(!roms[0] || !roms[1]) return false;
rom_ = std::move(*roms[0]);
rom_start_address_ = static_cast<uint16_t>(0x10000 - rom_.size());
if(rom_.size() > 12*1024) {
rom_.erase(rom_.begin(), rom_.begin() + static_cast<off_t>(rom_.size()) - 12*1024);
}
rom_start_address_ = 0xd000;//static_cast<uint16_t>(0x10000 - rom_.size());
character_rom_ = std::move(*roms[1]);