OXYGENHUB
◆ main openmsx / src / fdc / TalentTDC600.hh
751 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#ifndef TALENTTDC600_HH
2
#define TALENTTDC600_HH
3
4
#include "MSXFDC.hh"
5
#include "TC8566AF.hh"
6
7
namespace openmsx {
8
9
class TalentTDC600 final : public MSXFDC
10
{
11
public:
12
	explicit TalentTDC600(DeviceConfig& config);
13
14
	void reset(EmuTime time) override;
15
	[[nodiscard]] byte readMem(uint16_t address, EmuTime time) override;
16
	[[nodiscard]] byte peekMem(uint16_t address, EmuTime time) const 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 address) override;
20
21
	template<typename Archive>
22
	void serialize(Archive& ar, unsigned version);
23
24
private:
25
	TC8566AF controller;
26
};
27
28
} // namespace openmsx
29
30
#endif