From 6512dd599d13035f6a90b2009344e02c488f5aae Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Thu, 23 Jan 2025 19:37:32 +0100 Subject: initial working version --- src/nes/cpu.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nes/cpu.hh') diff --git a/src/nes/cpu.hh b/src/nes/cpu.hh index 0614f76..fc3ef5b 100644 --- a/src/nes/cpu.hh +++ b/src/nes/cpu.hh @@ -134,9 +134,11 @@ namespace nes auto snapshot(test::status&) -> void; + auto get_cycles() const -> cycle_count { return current_cycles_; } auto stall_cycles(cycle_count) -> void; auto trigger_nmi() -> void; - auto step_to(cycle_count) -> void; + auto step() -> void; + auto is_nmi_pending() const -> bool { return nmi_pending_; } // XXX: Debugging // Memory access @@ -146,8 +148,6 @@ namespace nes auto write16(address, std::uint16_t) -> void; private: - auto step() -> void; - // Instructions #define DEFINE_SIMPLE_INSTRUCTION(name) \ -- cgit v1.3.1