// $Id: RomGameMaster2.hh 4858 2005-11-12 21:53:21Z m9710797 $ #ifndef ROMGAMEMASTER2_HH #define ROMGAMEMASTER2_HH #include "Rom4kBBlocks.hh" namespace openmsx { class SRAM; class RomGameMaster2 : public Rom4kBBlocks { public: RomGameMaster2(MSXMotherBoard& motherBoard, const XMLElement& config, const EmuTime& time, std::auto_ptr rom); virtual ~RomGameMaster2(); virtual void reset(const EmuTime& time); virtual void writeMem(word address, byte value, const EmuTime& time); virtual byte* getWriteCacheLine(word address) const; private: const std::auto_ptr sram; word sramOffset; bool sramEnabled; }; } // namespace openmsx #endif