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