openMSX
AVTFDC.hh
Go to the documentation of this file.
1 #ifndef AVTFDC_HH
2 #define AVTFDC_HH
3 
4 #include "WD2793BasedFDC.hh"
5 
6 namespace openmsx {
7 
8 class AVTFDC final : public WD2793BasedFDC
9 {
10 public:
11  explicit AVTFDC(const DeviceConfig& config);
12 
13  byte readIO(word port, EmuTime::param time) override;
14  byte peekIO(word port, EmuTime::param time) const override;
15  void writeIO(word port, byte value, EmuTime::param time) override;
16 
17  template<typename Archive>
18  void serialize(Archive& ar, unsigned version);
19 };
20 
21 } // namespace openmsx
22 
23 #endif
uint8_t byte
8 bit unsigned integer
Definition: openmsx.hh:26
void writeIO(word port, byte value, EmuTime::param time) override
Write a byte to a given IO port at a certain time to this device.
Definition: AVTFDC.cc:69
void serialize(Archive &ar, unsigned version)
Definition: AVTFDC.cc:121
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
Definition: AVTFDC.cc:41
AVTFDC(const DeviceConfig &config)
Definition: AVTFDC.cc:8
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
byte readIO(word port, EmuTime::param time) override
Read a byte from an IO port at a certain time from this device.
Definition: AVTFDC.cc:13