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.hh15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/nes/cpu.hh b/src/nes/cpu.hh
index 28ac0d6..75b1943 100644
--- a/src/nes/cpu.hh
+++ b/src/nes/cpu.hh
@@ -133,8 +133,16 @@ namespace nes
auto snapshot(test::status&) -> void;
+ auto stall_cycles(cycle_count) -> void;
auto step_to(cycle_count) -> void;
+ // Memory access
+
+ auto read8(address) -> std::uint8_t;
+ auto read16(address) -> std::uint16_t;
+ auto write8(address, std::uint8_t) -> void;
+ auto write16(address, std::uint16_t) -> void;
+
private:
auto step() -> void;
@@ -281,12 +289,5 @@ namespace nes
auto fetch_operand<addressing_mode::accumulator>(force_page_crossing) -> operand<addressing_mode::accumulator>;
template<>
auto fetch_operand<addressing_mode::immediate>(force_page_crossing) -> operand<addressing_mode::immediate>;
-
- // Memory access
-
- auto read8(address) -> std::uint8_t;
- auto read16(address) -> std::uint16_t;
- auto write8(address, std::uint8_t) -> void;
- auto write16(address, std::uint16_t) -> void;
};
} // namespace nes \ No newline at end of file