From 67672d06776e38b06f31f6599678767c60eed58a Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Sat, 18 Jan 2025 19:35:42 +0100 Subject: implement ppu io registers --- src/nes/cpu.hh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/nes/cpu.hh') 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(force_page_crossing) -> operand; template<> auto fetch_operand(force_page_crossing) -> operand; - - // 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 -- cgit v1.3.1