mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-15 14:27:29 +00:00
Adds extended ROM information for the ZX80 and '81.
This commit is contained in:
@@ -76,7 +76,11 @@ template<bool is_zx81> class ConcreteMachine:
|
|||||||
clear_all_keys();
|
clear_all_keys();
|
||||||
|
|
||||||
const bool use_zx81_rom = target.is_ZX81 || target.ZX80_uses_ZX81_ROM;
|
const bool use_zx81_rom = target.is_ZX81 || target.ZX80_uses_ZX81_ROM;
|
||||||
const auto roms = rom_fetcher("ZX8081", { ROMMachine::ROM(use_zx81_rom ? "zx81.rom" : "zx80.rom") } );
|
const auto roms =
|
||||||
|
use_zx81_rom ?
|
||||||
|
rom_fetcher("ZX8081", { {"the ZX81 ROM", "zx81.rom", 8 * 1024, 0x4b1dd6eb} }) :
|
||||||
|
rom_fetcher("ZX8081", { {"the ZX80 ROM", "zx80.rom", 4 * 1024, 0x4c7fc597} });
|
||||||
|
|
||||||
if(!roms[0]) throw ROMMachine::Error::MissingROMs;
|
if(!roms[0]) throw ROMMachine::Error::MissingROMs;
|
||||||
|
|
||||||
rom_ = std::move(*roms[0]);
|
rom_ = std::move(*roms[0]);
|
||||||
|
Reference in New Issue
Block a user