diff options
Diffstat (limited to 'lib/nes/mapper.hh')
| -rw-r--r-- | lib/nes/mapper.hh | 32 |
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 |
