OXYGENHUB
◆ main openmsx / src / MSXResetStatusRegister.hh
719 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
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
12
namespace openmsx {
13
14
class MSXResetStatusRegister final : public MSXDevice
15
{
16
public:
17
	explicit MSXResetStatusRegister(const DeviceConfig& config);
18
19
	void reset(EmuTime time) override;
20
	[[nodiscard]] byte readIO(uint16_t port, EmuTime time) override;
21
	[[nodiscard]] byte peekIO(uint16_t port, EmuTime time) const override;
22
	void writeIO(uint16_t port, byte value, EmuTime time) override;
23
24
	template<typename Archive>
25
	void serialize(Archive& ar, unsigned version);
26
27
private:
28
	const bool inverted;
29
	byte status;
30
};
31
32
} // namespace openmsx
33
34
#endif