// $Id: RomNational.hh 5408 2006-05-26 10:45:54Z m9710797 $ #ifndef ROMNATIONAL_HH #define ROMNATIONAL_HH #include "Rom16kBBlocks.hh" namespace openmsx { class SRAM; class RomNational : public Rom16kBBlocks { public: RomNational(MSXMotherBoard& motherBoard, const XMLElement& config, const EmuTime& time, std::auto_ptr rom); virtual ~RomNational(); virtual void reset(const EmuTime& time); virtual byte peekMem(word address, const EmuTime& time) const; virtual byte readMem(word address, const EmuTime& time); virtual const byte* getReadCacheLine(word address) const; virtual void writeMem(word address, byte value, const EmuTime& time); virtual byte* getWriteCacheLine(word address) const; private: const std::auto_ptr sram; int sramAddr; byte control; byte bankSelect[4]; }; } // namespace openmsx #endif