openMSX
RomKonamiSCC.hh
Go to the documentation of this file.
1 #ifndef ROMKONAMISCC_HH
2 #define ROMKONAMISCC_HH
3 
4 #include "RomBlocks.hh"
5 
6 namespace openmsx {
7 
8 class SCC;
9 
10 class RomKonamiSCC : public Rom8kBBlocks
11 {
12 public:
13  RomKonamiSCC(const DeviceConfig& config, std::unique_ptr<Rom> rom);
14  virtual ~RomKonamiSCC();
15 
16  virtual void powerUp(EmuTime::param time);
17  virtual void reset(EmuTime::param time);
18  virtual byte peekMem(word address, EmuTime::param time) const;
19  virtual byte readMem(word address, EmuTime::param time);
20  virtual const byte* getReadCacheLine(word address) const;
21  virtual void writeMem(word address, byte value, EmuTime::param time);
22  virtual byte* getWriteCacheLine(word address) const;
23 
24  template<typename Archive>
25  void serialize(Archive& ar, unsigned version);
26 
27 private:
28  const std::unique_ptr<SCC> scc;
29  bool sccEnabled;
30 };
31 
32 } // namespace openmsx
33 
34 #endif
virtual void reset(EmuTime::param time)
This method is called on reset.
Definition: RomKonamiSCC.cc:50
virtual byte readMem(word address, EmuTime::param time)
Read a byte from a location at a certain time from this device.
Definition: RomKonamiSCC.cc:73
virtual byte peekMem(word address, EmuTime::param time) const
Read a byte from a given memory location.
Definition: RomKonamiSCC.cc:64
unsigned char byte
8 bit unsigned integer
Definition: openmsx.hh:33
virtual void writeMem(word address, byte value, EmuTime::param time)
Write a given byte to a given location at a certain time to this device.
Definition: RomKonamiSCC.cc:92
SCC
Definition: SCC.cc:659
virtual byte * getWriteCacheLine(word address) const
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing...
void serialize(Archive &ar, unsigned version)
virtual void powerUp(EmuTime::param time)
This method is called when MSX is powered up.
Definition: RomKonamiSCC.cc:44
unsigned short word
16 bit unsigned integer
Definition: openmsx.hh:38
const std::unique_ptr< Rom > rom
Definition: MSXRom.hh:24
RomKonamiSCC(const DeviceConfig &config, std::unique_ptr< Rom > rom)
Definition: RomKonamiSCC.cc:25
virtual const byte * getReadCacheLine(word address) const
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading...
Definition: RomKonamiSCC.cc:82