| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
#ifndef MSXE6TIMER_HH |
| 11 |
#define MSXE6TIMER_HH |
| 12 |
|
| 13 |
#include "Clock.hh" |
| 14 |
#include "MSXDevice.hh" |
| 15 |
|
| 16 |
namespace openmsx { |
| 17 |
|
| 18 |
class MSXE6Timer final : public MSXDevice |
| 19 |
{ |
| 20 |
public: |
| 21 |
explicit MSXE6Timer(const DeviceConfig& config); |
| 22 |
|
| 23 |
void reset(EmuTime time) override; |
| 24 |
[[nodiscard]] byte readIO(uint16_t port, EmuTime time) override; |
| 25 |
void writeIO(uint16_t port, byte value, EmuTime time) override; |
| 26 |
[[nodiscard]] byte peekIO(uint16_t port, EmuTime time) const override; |
| 27 |
|
| 28 |
template<typename Archive> |
| 29 |
void serialize(Archive& ar, unsigned version); |
| 30 |
|
| 31 |
private: |
| 32 |
Clock<3579545, 14> reference; |
| 33 |
}; |
| 34 |
|
| 35 |
} |
| 36 |
|
| 37 |
#endif |