// $Id: RomAscii8_8.hh 4486 2005-06-16 19:35:31Z m9710797 $ #ifndef ROMASCII8_8_HH #define ROMASCII8_8_HH #include "Rom8kBBlocks.hh" namespace openmsx { class SRAM; class RomAscii8_8 : public Rom8kBBlocks { public: enum SubType { ASCII8_8, KOEI_8, KOEI_32, WIZARDRY }; RomAscii8_8(MSXMotherBoard& motherBoard, const XMLElement& config, const EmuTime& time, std::auto_ptr rom, SubType subType); virtual ~RomAscii8_8(); 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; byte sramEnabled; byte sramBlock[8]; byte sramEnableBit; byte sramPages; }; } // namespace openmsx #endif