| 1 |
#ifndef MSXVICTORHC9XSYSTEMCONTROL_HH |
| 2 |
#define MSXVICTORHC9XSYSTEMCONTROL_HH |
| 3 |
|
| 4 |
#include "MSXDevice.hh" |
| 5 |
|
| 6 |
namespace openmsx { |
| 7 |
|
| 8 |
class MSXVictorHC9xSystemControl final : public MSXDevice |
| 9 |
{ |
| 10 |
public: |
| 11 |
explicit MSXVictorHC9xSystemControl(const DeviceConfig& config); |
| 12 |
|
| 13 |
[[nodiscard]] byte readMem(uint16_t address, EmuTime time) override; |
| 14 |
[[nodiscard]] byte peekMem(uint16_t address, EmuTime time) const override; |
| 15 |
void writeMem(uint16_t address, byte value, EmuTime 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 = 0x80; |
| 23 |
}; |
| 24 |
|
| 25 |
} |
| 26 |
|
| 27 |
#endif |