// $Id: MSXRam.hh 5158 2006-02-10 12:40:44Z m9710797 $ #ifndef MSXSIMPLE64KB_HH #define MSXSIMPLE64KB_HH #include "MSXDevice.hh" #include namespace openmsx { class CheckedRam; class MSXRam : public MSXDevice { public: MSXRam(MSXMotherBoard& motherBoard, const XMLElement& config, const EmuTime& time); virtual void powerUp(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 start) const; virtual byte* getWriteCacheLine(word start) const; virtual byte peekMem(word address, const EmuTime& time) const; private: inline word translate(word address) const; unsigned base; unsigned size; std::auto_ptr checkedRam; }; } // namespace openmsx #endif