openMSX
MSXVictorHC9xSystemControl.hh
Go to the documentation of this file.
1 #ifndef MSXVICTORHC9XSYSTEMCONTROL_HH
2 #define MSXVICTORHC9XSYSTEMCONTROL_HH
3 
4 #include "MSXDevice.hh"
5 
6 namespace openmsx {
7 
9 {
10 public:
11  explicit MSXVictorHC9xSystemControl(const DeviceConfig& config);
12 
13  [[nodiscard]] byte readMem(word address, EmuTime::param time) override;
14  [[nodiscard]] byte peekMem(word address, EmuTime::param time) const override;
15  void writeMem(word address, byte value, EmuTime::param time) override;
16  [[nodiscard]] bool allowUnaligned() const override;
17 
18  template<typename Archive>
19  void serialize(Archive& ar, unsigned version);
20 
21 private:
22  byte systemControlRegister;
23 };
24 
25 } // namespace openmsx
26 
27 #endif
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
Definition: MSXDevice.hh:33
byte peekMem(word address, EmuTime::param time) const override
Read a byte from a given memory location.
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.
void serialize(Archive &ar, unsigned version)
bool allowUnaligned() const override
By default we don't allow unaligned <mem> specifications in the config file.
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
MSXVictorHC9xSystemControl(const DeviceConfig &config)
This file implemented 3 utility functions:
Definition: Autofire.cc:9
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29