openMSX
NationalFDC.hh
Go to the documentation of this file.
1 #ifndef NATIONALFDC_HH
2 #define NATIONALFDC_HH
3 
4 #include "WD2793BasedFDC.hh"
5 
6 namespace openmsx {
7 
8 class NationalFDC final : public WD2793BasedFDC
9 {
10 public:
11  explicit NationalFDC(const DeviceConfig& config);
12 
13  byte readMem(word address, EmuTime::param time) override;
14  byte peekMem(word address, EmuTime::param time) const override;
15  void writeMem(word address, byte value, EmuTime::param time) override;
16  const byte* getReadCacheLine(word start) const override;
17  byte* getWriteCacheLine(word address) const override;
18 
19  template<typename Archive>
20  void serialize(Archive& ar, unsigned version);
21 };
22 
23 } // namespace openmsx
24 
25 #endif
openmsx::NationalFDC::peekMem
byte peekMem(word address, EmuTime::param time) const override
Read a byte from a given memory location.
Definition: NationalFDC.cc:45
openmsx::NationalFDC
Definition: NationalFDC.hh:8
openmsx::DeviceConfig
Definition: DeviceConfig.hh:19
openmsx::NationalFDC::serialize
void serialize(Archive &ar, unsigned version)
Definition: NationalFDC.cc:154
openmsx::NationalFDC::NationalFDC
NationalFDC(const DeviceConfig &config)
Definition: NationalFDC.cc:9
openmsx::WD2793BasedFDC
Definition: WD2793BasedFDC.hh:11
openmsx::NationalFDC::writeMem
void writeMem(word address, byte value, EmuTime::param time) override
Write a given byte to a given location at a certain time to this device.
Definition: NationalFDC.cc:101
openmsx::NationalFDC::readMem
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
Definition: NationalFDC.cc:14
openmsx::word
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
WD2793BasedFDC.hh
openmsx::NationalFDC::getReadCacheLine
const byte * getReadCacheLine(word start) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading.
Definition: NationalFDC.cc:88
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
openmsx::NationalFDC::getWriteCacheLine
byte * getWriteCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
Definition: NationalFDC.cc:142