From 57bfec285fc682b4b85a49e26c9c2194ff488501 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 26 Aug 2017 23:08:57 -0400 Subject: [PATCH] Makes it optional whether the Z80 supports the wait line. If the wait line isn't in use, runtime costs are decreased because the optional wait cycles need not be iterated over. --- Machines/AmstradCPC/AmstradCPC.cpp | 2 +- Machines/ZX8081/ZX8081.cpp | 2 +- Processors/Z80/Z80.hpp | 19 +++++++++++++++++-- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/Machines/AmstradCPC/AmstradCPC.cpp b/Machines/AmstradCPC/AmstradCPC.cpp index 1d6ff8458..0244ddb41 100644 --- a/Machines/AmstradCPC/AmstradCPC.cpp +++ b/Machines/AmstradCPC/AmstradCPC.cpp @@ -998,7 +998,7 @@ class ConcreteMachine: } } - CPU::Z80::Processor z80_; + CPU::Z80::Processor z80_; CRTCBusHandler crtc_bus_handler_; Motorola::CRTC::CRTC6845 crtc_; diff --git a/Machines/ZX8081/ZX8081.cpp b/Machines/ZX8081/ZX8081.cpp index fab9c8986..2737d3cf9 100644 --- a/Machines/ZX8081/ZX8081.cpp +++ b/Machines/ZX8081/ZX8081.cpp @@ -332,7 +332,7 @@ class ConcreteMachine: HalfCycles get_typer_frequency() override final { return Cycles(390000); } private: - CPU::Z80::Processor z80_; + CPU::Z80::Processor z80_; std::shared_ptr