summaryrefslogtreecommitdiff
path: root/src/nes/cpu.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/nes/cpu.hh')
-rw-r--r--src/nes/cpu.hh6
1 files changed, 3 insertions, 3 deletions
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) \