// $Id: MSXRTC.hh 4909 2005-12-03 18:58:10Z arnoldmnl $ #ifndef MSXRTC_HH #define MSXRTC_HH #include "MSXDevice.hh" #include namespace openmsx { class SRAM; class RP5C01; class MSXRTC : public MSXDevice { public: MSXRTC(MSXMotherBoard& motherBoard, const XMLElement& config, const EmuTime& time); virtual ~MSXRTC(); virtual void reset(const EmuTime& time); virtual byte readIO(word port, const EmuTime& time); virtual byte peekIO(word port, const EmuTime& time) const; virtual void writeIO(word port, byte value, const EmuTime& time); private: std::auto_ptr sram; std::auto_ptr rp5c01; nibble registerLatch; }; } // namespace openmsx #endif