diff --git a/inc/ClockedChip.h b/inc/ClockedChip.h index 564f733..3f2b828 100644 --- a/inc/ClockedChip.h +++ b/inc/ClockedChip.h @@ -11,12 +11,12 @@ namespace EightBit { Signal Ticked; + void tick(const int extra) { for (int i = 0; i < extra; ++i) tick(); } + void tick() { ++m_cycles; Ticked.fire(EventArgs::empty()); } [[nodiscard]] auto cycles() const noexcept { return m_cycles; } protected: void resetCycles() noexcept { m_cycles = 0; } - void tick(const int extra) { for (int i = 0; i < extra; ++i) tick(); } - void tick() { ++m_cycles; Ticked.fire(EventArgs::empty()); } private: int m_cycles = 0;