From b2a66827987e7328bc9343d8c59e8d8b0c3afd78 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 20 Jul 2019 22:46:49 -0400 Subject: [PATCH] Adds extended ROM information for the ZX80 and '81. --- Machines/ZX8081/ZX8081.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Machines/ZX8081/ZX8081.cpp b/Machines/ZX8081/ZX8081.cpp index 5121fc59e..fcf995060 100644 --- a/Machines/ZX8081/ZX8081.cpp +++ b/Machines/ZX8081/ZX8081.cpp @@ -76,7 +76,11 @@ template class ConcreteMachine: clear_all_keys(); 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; rom_ = std::move(*roms[0]);