openMSX
SanyoFDC.hh
Go to the documentation of this file.
1#ifndef SANYOFDC_HH
2#define SANYOFDC_HH
3
4#include "WD2793BasedFDC.hh"
5
6namespace openmsx {
7
8class SanyoFDC final : public WD2793BasedFDC
9{
10public:
11 explicit SanyoFDC(const DeviceConfig& config);
12
13 [[nodiscard]] byte readMem(word address, EmuTime::param time) override;
14 [[nodiscard]] byte peekMem(word address, EmuTime::param time) const override;
15 void writeMem(word address, byte value, EmuTime::param time) override;
16 [[nodiscard]] const byte* getReadCacheLine(word start) const override;
17 [[nodiscard]] 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
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
Definition SanyoFDC.cc:20
const byte * getReadCacheLine(word start) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading.
Definition SanyoFDC.cc:84
byte * getWriteCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
Definition SanyoFDC.cc:134
void serialize(Archive &ar, unsigned version)
Definition SanyoFDC.cc:146
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 SanyoFDC.cc:97
byte peekMem(word address, EmuTime::param time) const override
Read a byte from a given memory location.
Definition SanyoFDC.cc:45
This file implemented 3 utility functions:
Definition Autofire.cc:9
uint16_t word
16 bit unsigned integer
Definition openmsx.hh:29