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