openMSX
fdc
WD2793BasedFDC.cc
Go to the documentation of this file.
1
#include "
WD2793BasedFDC.hh
"
2
#include "
XMLElement.hh
"
3
#include "
serialize.hh
"
4
5
namespace
openmsx
{
6
7
WD2793BasedFDC::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
16
void
WD2793BasedFDC::reset
(EmuTime::param time)
17
{
18
controller
.
reset
(time);
19
}
20
21
template
<
typename
Archive>
22
void
WD2793BasedFDC::serialize
(Archive& ar,
unsigned
/*version*/
)
23
{
24
ar.template serializeBase<MSXFDC>(*
this
);
25
ar.serialize(
"multiplexer"
,
multiplexer
,
26
"wd2793"
,
controller
);
27
}
28
INSTANTIATE_SERIALIZE_METHODS
(
WD2793BasedFDC
);
29
30
}
// namespace openmsx
WD2793BasedFDC.hh
XMLElement.hh
openmsx::DeviceConfig
Definition
DeviceConfig.hh:21
openmsx::DiskDrive::TrackMode
TrackMode
Definition
DiskDrive.hh:15
openmsx::MSXFDC
Definition
MSXFDC.hh:15
openmsx::WD2793BasedFDC
Definition
WD2793BasedFDC.hh:12
openmsx::WD2793BasedFDC::serialize
void serialize(Archive &ar, unsigned version)
Definition
WD2793BasedFDC.cc:22
openmsx::WD2793BasedFDC::reset
void reset(EmuTime::param time) override
This method is called on reset.
Definition
WD2793BasedFDC.cc:16
openmsx::WD2793BasedFDC::multiplexer
DriveMultiplexer multiplexer
Definition
WD2793BasedFDC.hh:25
openmsx::WD2793BasedFDC::WD2793BasedFDC
WD2793BasedFDC(const DeviceConfig &config, const std::string &romId={}, bool needROM=true, DiskDrive::TrackMode mode=DiskDrive::TrackMode::NORMAL)
Definition
WD2793BasedFDC.cc:7
openmsx::WD2793BasedFDC::controller
WD2793 controller
Definition
WD2793BasedFDC.hh:26
openmsx::WD2793::reset
void reset(EmuTime::param time)
Definition
WD2793.cc:60
openmsx
This file implemented 3 utility functions:
Definition
Autofire.cc:11
serialize.hh
INSTANTIATE_SERIALIZE_METHODS
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)
Definition
serialize.hh:1007
Generated on Wed Nov 6 2024 21:13:38 for openMSX by
1.9.8