openMSX
WD2793BasedFDC.cc
Go to the documentation of this file.
1#include "WD2793BasedFDC.hh"
2#include "XMLElement.hh"
3#include "serialize.hh"
4
5namespace openmsx {
6
7WD2793BasedFDC::WD2793BasedFDC(const DeviceConfig& config, const std::string& romId,
8 bool needROM, DiskDrive::TrackMode trackMode)
9 : MSXFDC(config, romId, needROM, trackMode)
10 , multiplexer(drives)
11 , controller(getScheduler(), multiplexer, getCliComm(), getCurrentTime(),
12 config.getXML()->getName() == "WD1770")
13{
14}
15
16void WD2793BasedFDC::reset(EmuTime::param time)
17{
18 controller.reset(time);
19}
20
21template<typename Archive>
22void WD2793BasedFDC::serialize(Archive& ar, unsigned /*version*/)
23{
24 ar.template serializeBase<MSXFDC>(*this);
25 ar.serialize("multiplexer", multiplexer,
26 "wd2793", controller);
27}
29
30} // namespace openmsx
void serialize(Archive &ar, unsigned version)
void reset(EmuTime::param time) override
This method is called on reset.
DriveMultiplexer multiplexer
WD2793BasedFDC(const DeviceConfig &config, const std::string &romId={}, bool needROM=true, DiskDrive::TrackMode mode=DiskDrive::TrackMode::NORMAL)
void reset(EmuTime::param time)
Definition WD2793.cc:60
This file implemented 3 utility functions:
Definition Autofire.cc:11
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)