| 1 |
#ifndef YAMAHAFDC_HH |
| 2 |
#define YAMAHAFDC_HH |
| 3 |
|
| 4 |
#include "WD2793BasedFDC.hh" |
| 5 |
|
| 6 |
namespace openmsx { |
| 7 |
|
| 8 |
class YamahaFDC final : public WD2793BasedFDC |
| 9 |
{ |
| 10 |
public: |
| 11 |
explicit YamahaFDC(DeviceConfig& config); |
| 12 |
|
| 13 |
void reset(EmuTime time) override; |
| 14 |
[[nodiscard]] byte readMem(uint16_t address, EmuTime time) override; |
| 15 |
[[nodiscard]] byte peekMem(uint16_t address, EmuTime time) const override; |
| 16 |
void writeMem(uint16_t address, byte value, EmuTime time) override; |
| 17 |
[[nodiscard]] const byte* getReadCacheLine(uint16_t start) const override; |
| 18 |
[[nodiscard]] byte* getWriteCacheLine(uint16_t address) override; |
| 19 |
|
| 20 |
template<typename Archive> |
| 21 |
void serialize(Archive& ar, unsigned version); |
| 22 |
}; |
| 23 |
|
| 24 |
} |
| 25 |
|
| 26 |
#endif |