1234567891011121314151617181920212223242526272829303132333435 |
- /*
- * This class implements the device found on IO-port 0xF4 on a MSX Turbo-R.
- *
- * TODO explanation
- */
- #ifndef F4DEVICE_HH
- #define F4DEVICE_HH
- #include "MSXDevice.hh"
- namespace openmsx {
- class MSXResetStatusRegister final : public MSXDevice
- {
- public:
- explicit MSXResetStatusRegister(const DeviceConfig& config);
- void reset(EmuTime::param time) override;
- byte readIO(word port, EmuTime::param time) override;
- byte peekIO(word port, EmuTime::param time) const override;
- void writeIO(word port, byte value, EmuTime::param time) override;
- template<typename Archive>
- void serialize(Archive& ar, unsigned version);
- private:
- const bool inverted;
- byte status;
- };
- } // namespace openmsx
- #endif
|