diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-01-23 19:37:32 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-01-23 19:37:32 +0100 |
| commit | 6512dd599d13035f6a90b2009344e02c488f5aae (patch) | |
| tree | 5d19f043aac57c5cec6edc8221d5ec9057d49ab3 /src/nes/cpu.hh | |
| parent | baa585fd21f631708de215929241d40f66b58498 (diff) | |
initial working version
Diffstat (limited to 'src/nes/cpu.hh')
| -rw-r--r-- | src/nes/cpu.hh | 6 |
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) \ |
