OXYGENHUB
◆ main openmsx / src / MSXBunsetsu.hh
706 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#ifndef MSXBUNSETSU_HH
2
#define MSXBUNSETSU_HH
3
4
#include "MSXDevice.hh"
5
#include "Rom.hh"
6
7
namespace openmsx {
8
9
class MSXBunsetsu final : public MSXDevice
10
{
11
public:
12
	explicit MSXBunsetsu(DeviceConfig& config);
13
14
	void reset(EmuTime time) override;
15
16
	[[nodiscard]] byte readMem(uint16_t address, EmuTime time) override;
17
	void writeMem(uint16_t address, byte value, EmuTime time) override;
18
	[[nodiscard]] const byte* getReadCacheLine(uint16_t start) const override;
19
	[[nodiscard]] byte* getWriteCacheLine(uint16_t start) override;
20
21
	template<typename Archive>
22
	void serialize(Archive& ar, unsigned version);
23
24
private:
25
	Rom bunsetsuRom;
26
	Rom jisyoRom;
27
	unsigned jisyoAddress;
28
};
29
30
} // namespace openmsx
31
32
#endif