| 1 |
#ifndef ROMHALNOTE_HH |
| 2 |
#define ROMHALNOTE_HH |
| 3 |
|
| 4 |
#include "RomBlocks.hh" |
| 5 |
#include <array> |
| 6 |
|
| 7 |
namespace openmsx { |
| 8 |
|
| 9 |
class RomHalnote final : public Rom8kBBlocks |
| 10 |
{ |
| 11 |
public: |
| 12 |
RomHalnote(const DeviceConfig& config, Rom&& rom); |
| 13 |
|
| 14 |
void reset(EmuTime time) override; |
| 15 |
[[nodiscard]] byte readMem(uint16_t address, EmuTime time) override; |
| 16 |
[[nodiscard]] const byte* getReadCacheLine(uint16_t address) const override; |
| 17 |
void writeMem(uint16_t address, byte value, EmuTime time) override; |
| 18 |
[[nodiscard]] byte* getWriteCacheLine(uint16_t address) override; |
| 19 |
|
| 20 |
template<typename Archive> |
| 21 |
void serialize(Archive& ar, unsigned version); |
| 22 |
|
| 23 |
private: |
| 24 |
std::array<byte, 2> subBanks; |
| 25 |
bool sramEnabled; |
| 26 |
bool subMapperEnabled; |
| 27 |
}; |
| 28 |
|
| 29 |
} |
| 30 |
|
| 31 |
#endif |