From 69a845e2f4dc8e415c1fe98401f84cc67f3cd760 Mon Sep 17 00:00:00 2001 From: Adrian Conlon <98398945+AdrianConlon@users.noreply.github.com> Date: Sat, 6 Jan 2024 20:53:50 +0000 Subject: [PATCH] How did that "secret" tick in the M6502 implementation get there??? --- M6502/HarteTest_6502/checker_t.h | 2 +- M6502/src/mos6502.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/M6502/HarteTest_6502/checker_t.h b/M6502/HarteTest_6502/checker_t.h index ce53ad2..e77370a 100644 --- a/M6502/HarteTest_6502/checker_t.h +++ b/M6502/HarteTest_6502/checker_t.h @@ -84,7 +84,7 @@ public: [[nodiscard]] constexpr auto cycles() const noexcept { return m_cycles; } [[nodiscard]] constexpr auto valid() const noexcept { return m_valid; } [[nodiscard]] constexpr auto invalid() const noexcept { return !valid(); } - [[nodiscard]] constexpr auto unimplemented() const noexcept { return invalid() && m_cycle_count_mismatch && (cycles() == 1); } + [[nodiscard]] constexpr auto unimplemented() const noexcept { return invalid() && m_cycle_count_mismatch && (cycles() == 0); } [[nodiscard]] constexpr auto implemented() const noexcept { return !unimplemented(); } [[nodiscard]] constexpr const auto& messages() const noexcept { return m_messages; } diff --git a/M6502/src/mos6502.cpp b/M6502/src/mos6502.cpp index 7505436..d5e125e 100644 --- a/M6502/src/mos6502.cpp +++ b/M6502/src/mos6502.cpp @@ -24,7 +24,6 @@ int EightBit::MOS6502::step() noexcept { resetCycles(); ExecutingInstruction.fire(*this); if (LIKELY(powered())) { - tick(); if (UNLIKELY(lowered(SO()))) handleSO(); if (LIKELY(raised(RDY()))) {