From 5959349f341a2380c0c3f41ec40a1e8e0d969d00 Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Wed, 29 Jan 2025 14:49:20 +0100 Subject: refactor: move emulation logic into sys --- lib/nes/mapper.hh | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 lib/nes/mapper.hh (limited to 'lib/nes/mapper.hh') 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 -- cgit v1.3.1