OXYGENHUB
◆ main openmsx / src / fdc / WD2793BasedFDC.hh
735 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#ifndef WD2793BASEDFDC_HH
2
#define WD2793BASEDFDC_HH
3
4
#include "DriveMultiplexer.hh"
5
#include "MSXFDC.hh"
6
#include "WD2793.hh"
7
8
#include <string>
9
10
namespace openmsx {
11
12
class WD2793BasedFDC : public MSXFDC
13
{
14
public:
15
	void reset(EmuTime time) override;
16
17
	template<typename Archive>
18
	void serialize(Archive& ar, unsigned version);
19
20
protected:
21
	explicit WD2793BasedFDC(DeviceConfig& config, const std::string& romId = {},
22
	                        bool needROM = true,
23
	                        DiskDrive::TrackMode mode = DiskDrive::TrackMode::NORMAL);
24
	~WD2793BasedFDC() override = default;
25
26
	DriveMultiplexer multiplexer;
27
	WD2793 controller;
28
};
29
30
REGISTER_BASE_NAME_HELPER(WD2793BasedFDC, "WD2793BasedFDC");
31
32
} // namespace openmsx
33
34
#endif