// $Id: MSXPac.hh 4486 2005-06-16 19:35:31Z m9710797 $ #ifndef MSXPAC_HH #define MSXPAC_HH #include "MSXDevice.hh" #include namespace openmsx { class SRAM; class MSXPac : public MSXDevice { public: MSXPac(MSXMotherBoard& motherBoard, const XMLElement& config, const EmuTime& time); virtual ~MSXPac(); virtual void reset(const EmuTime& time); virtual byte readMem(word address, const EmuTime& time); virtual void writeMem(word address, byte value, const EmuTime& time); virtual const byte* getReadCacheLine(word address) const; virtual byte* getWriteCacheLine(word address) const; private: void checkSramEnable(); const std::auto_ptr sram; byte r1ffe, r1fff; bool sramEnabled; }; } // namespace openmsx #endif