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
7namespace openmsx {
8
9class MSXBunsetsu final : public MSXDevice
10{
11public:
12 explicit MSXBunsetsu(const DeviceConfig& config);
13
14 void reset(EmuTime::param time) override;
15
16 [[nodiscard]] byte readMem(word address, EmuTime::param time) override;
17 void writeMem(word address, byte value, EmuTime::param time) override;
18 [[nodiscard]] const byte* getReadCacheLine(word start) const override;
19 [[nodiscard]] byte* getWriteCacheLine(word start) const override;
20
21 template<typename Archive>
22 void serialize(Archive& ar, unsigned version);
23
24private:
25 Rom bunsetsuRom;
26 Rom jisyoRom;
27 unsigned jisyoAddress;
28};
29
30} // namespace openmsx
31
32#endif
void reset(EmuTime::param time) override
This method is called on reset.
Definition: MSXBunsetsu.cc:15
byte * getWriteCacheLine(word start) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
Definition: MSXBunsetsu.cc:58
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:33
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:49
MSXBunsetsu(const DeviceConfig &config)
Definition: MSXBunsetsu.cc:7
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
void serialize(Archive &ar, unsigned version)
Definition: MSXBunsetsu.cc:68
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
Definition: MSXDevice.hh:33
This file implemented 3 utility functions:
Definition: Autofire.cc:9
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29