PasswordCart.hh 580 B

1234567891011121314151617181920212223242526272829
  1. #ifndef PASSWORDCART_HH
  2. #define PASSWORDCART_HH
  3. #include "MSXDevice.hh"
  4. namespace openmsx {
  5. class PasswordCart final : public MSXDevice
  6. {
  7. public:
  8. explicit PasswordCart(const DeviceConfig& config);
  9. void reset(EmuTime::param time) override;
  10. void writeIO(word port, byte value, EmuTime::param time) override;
  11. byte readIO(word port, EmuTime::param time) override;
  12. byte peekIO(word port, EmuTime::param time) const override;
  13. template<typename Archive>
  14. void serialize(Archive& ar, unsigned version);
  15. private:
  16. const word password;
  17. byte pointer;
  18. };
  19. } // namespace
  20. #endif