summaryrefslogtreecommitdiff
path: root/src/nes/cpu.hh
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2025-01-18 19:35:42 +0100
committerHannes Schulze <haschu0103@outlook.de>2025-01-18 19:35:42 +0100
commit67672d06776e38b06f31f6599678767c60eed58a (patch)
tree4846c762815b887036b10a7aadd849dd8fdd4420 /src/nes/cpu.hh
parentfe7243fdd14f6ef57033f9e70141aba970dba7ea (diff)
implement ppu io registers
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