openMSX
MSXResetStatusRegister.hh
Go to the documentation of this file.
1/*
2 * This class implements the device found on IO-port 0xF4 on a MSX Turbo-R.
3 *
4 * TODO explanation
5 */
6
7#ifndef F4DEVICE_HH
8#define F4DEVICE_HH
9
10#include "MSXDevice.hh"
11
12namespace openmsx {
13
15{
16public:
17 explicit MSXResetStatusRegister(const DeviceConfig& config);
18
19 void reset(EmuTime::param time) override;
20 [[nodiscard]] byte readIO(word port, EmuTime::param time) override;
21 [[nodiscard]] byte peekIO(word port, EmuTime::param time) const override;
22 void writeIO(word port, byte value, EmuTime::param time) override;
23
24 template<typename Archive>
25 void serialize(Archive& ar, unsigned version);
26
27private:
28 const bool inverted;
29 byte status;
30};
31
32} // namespace openmsx
33
34#endif
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
Definition MSXDevice.hh:36
void serialize(Archive &ar, unsigned version)
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
void reset(EmuTime::param time) override
This method is called on reset.
void writeIO(word port, byte value, EmuTime::param time) override
Write a byte to a given IO port at a certain time to this device.
byte readIO(word port, EmuTime::param time) override
Read a byte from an IO port at a certain time from this device.
This file implemented 3 utility functions:
Definition Autofire.cc:11
uint16_t word
16 bit unsigned integer
Definition openmsx.hh:29