MSXResetStatusRegister.hh 707 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * This class implements the device found on IO-port 0xF4 on a MSX Turbo-R.
  3. *
  4. * TODO explanation
  5. */
  6. #ifndef F4DEVICE_HH
  7. #define F4DEVICE_HH
  8. #include "MSXDevice.hh"
  9. namespace openmsx {
  10. class MSXResetStatusRegister final : public MSXDevice
  11. {
  12. public:
  13. explicit MSXResetStatusRegister(const DeviceConfig& config);
  14. void reset(EmuTime::param time) override;
  15. byte readIO(word port, EmuTime::param time) override;
  16. byte peekIO(word port, EmuTime::param time) const override;
  17. void writeIO(word port, byte value, EmuTime::param time) override;
  18. template<typename Archive>
  19. void serialize(Archive& ar, unsigned version);
  20. private:
  21. const bool inverted;
  22. byte status;
  23. };
  24. } // namespace openmsx
  25. #endif