summaryrefslogtreecommitdiff
path: root/lib/nes/mapper.hh
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2025-01-29 14:49:20 +0100
committerHannes Schulze <haschu0103@outlook.de>2025-01-29 14:49:20 +0100
commit5959349f341a2380c0c3f41ec40a1e8e0d969d00 (patch)
tree8b36ba3f8cade68562af1dfdcea8b42160619975 /lib/nes/mapper.hh
parent1d32f7561305d6c86b1c80858bc73d55b1c6c402 (diff)
refactor: move emulation logic into sys
Diffstat (limited to 'lib/nes/mapper.hh')
-rw-r--r--lib/nes/mapper.hh32
1 files changed, 0 insertions, 32 deletions
diff --git a/lib/nes/mapper.hh b/lib/nes/mapper.hh
deleted file mode 100644
index 7e41b23..0000000
--- a/lib/nes/mapper.hh
+++ /dev/null
@@ -1,32 +0,0 @@
-#pragma once
-
-#include "nes/util/address.hh"
-#include "nes/util/status.hh"
-
-namespace nes
-{
- class cartridge;
-
- class mapper
- {
- public:
- static auto invalid() -> mapper&;
- static auto get(std::uint8_t number) -> mapper&;
-
- virtual ~mapper() = default;
-
- mapper(mapper const&) = delete;
- mapper(mapper&&) = delete;
- auto operator=(mapper const&) -> mapper& = delete;
- auto operator=(mapper&&) -> mapper& = delete;
-
- virtual auto validate(cartridge&) -> status = 0;
- virtual auto read_cpu(address, cartridge&) -> std::uint8_t = 0;
- virtual auto write_cpu(address, std::uint8_t, cartridge&) -> void = 0;
- virtual auto read_ppu(address, cartridge&, std::uint8_t const* vram) -> std::uint8_t = 0;
- virtual auto write_ppu(address, std::uint8_t, cartridge&, std::uint8_t* vram) -> void = 0;
-
- protected:
- explicit mapper() = default;
- };
-} // namespace nes \ No newline at end of file