openMSX
TalentTDC600.hh
Go to the documentation of this file.
1 #ifndef TALENTTDC600_HH
2 #define TALENTTDC600_HH
3 
4 #include "MSXFDC.hh"
5 #include "TC8566AF.hh"
6 
7 namespace openmsx {
8 
9 class TalentTDC600 final : public MSXFDC
10 {
11 public:
12  explicit TalentTDC600(const DeviceConfig& config);
13 
14  void reset(EmuTime::param time) override;
15  [[nodiscard]] byte readMem(word address, EmuTime::param time) override;
16  [[nodiscard]] byte peekMem(word address, EmuTime::param time) const override;
17  void writeMem(word address, byte value, EmuTime::param time) override;
18  [[nodiscard]] const byte* getReadCacheLine(word start) const override;
19  [[nodiscard]] byte* getWriteCacheLine(word address) const override;
20 
21  template<typename Archive>
22  void serialize(Archive& ar, unsigned version);
23 
24 private:
25  TC8566AF controller;
26 };
27 
28 } // namespace openmsx
29 
30 #endif
TalentTDC600(const DeviceConfig &config)
Definition: TalentTDC600.cc:10
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: TalentTDC600.cc:67
void reset(EmuTime::param time) override
This method is called on reset.
Definition: TalentTDC600.cc:18
const byte * getReadCacheLine(word start) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading.
Definition: TalentTDC600.cc:55
byte * getWriteCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
Definition: TalentTDC600.cc:79
byte peekMem(word address, EmuTime::param time) const override
Read a byte from a given memory location.
Definition: TalentTDC600.cc:39
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
Definition: TalentTDC600.cc:23
void serialize(Archive &ar, unsigned version)
Definition: TalentTDC600.cc:90
This file implemented 3 utility functions:
Definition: Autofire.cc:9
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29