openMSX
MSXBunsetsu.hh
Go to the documentation of this file.
1 #ifndef MSXBUNSETSU_HH
2 #define MSXBUNSETSU_HH
3 
4 #include "MSXDevice.hh"
5 #include "Rom.hh"
6 
7 namespace openmsx {
8 
9 class MSXBunsetsu final : public MSXDevice
10 {
11 public:
12  explicit MSXBunsetsu(const DeviceConfig& DeviceConfig);
13 
14  void reset(EmuTime::param time) override;
15 
16  byte readMem(word address, EmuTime::param time) override;
17  void writeMem(word address, byte value, EmuTime::param time) override;
18  const byte* getReadCacheLine(word start) const override;
19  byte* getWriteCacheLine(word start) const override;
20 
21  template<typename Archive>
22  void serialize(Archive& ar, unsigned version);
23 
24 private:
25  Rom bunsetsuRom;
26  Rom jisyoRom;
27  unsigned jisyoAddress;
28 };
29 
30 } // namespace openmsx
31 
32 #endif
MSXBunsetsu(const DeviceConfig &DeviceConfig)
Definition: MSXBunsetsu.cc:7
unsigned char byte
8 bit unsigned integer
Definition: openmsx.hh:27
void serialize(Archive &ar, unsigned version)
Definition: MSXBunsetsu.cc:69
void writeMem(word address, byte value, EmuTime::param time) override
Write a given byte to a given location at a certain time to this device.
Definition: MSXBunsetsu.cc:34
void reset(EmuTime::param time) override
This method is called on reset.
Definition: MSXBunsetsu.cc:15
const byte * getReadCacheLine(word start) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading...
Definition: MSXBunsetsu.cc:50
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
byte * getWriteCacheLine(word start) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing...
Definition: MSXBunsetsu.cc:59
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX...
Definition: MSXDevice.hh:32
unsigned short word
16 bit unsigned integer
Definition: openmsx.hh:32
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
Definition: MSXBunsetsu.cc:20