openMSX
JVCMSXMIDI.hh
Go to the documentation of this file.
1#ifndef JVCMSXMIDI_HH
2#define JVCMSXMIDI_HH
3
4#include "MSXDevice.hh"
5#include "MC6850.hh"
6
7namespace openmsx {
8
9class JVCMSXMIDI final : public MSXDevice
10{
11public:
12 explicit JVCMSXMIDI(const DeviceConfig& config);
13
14 // MSXDevice
15 void reset(EmuTime::param time) override;
16 [[nodiscard]] byte readIO(word port, EmuTime::param time) override;
17 [[nodiscard]] byte peekIO(word port, EmuTime::param time) const override;
18 void writeIO(word port, byte value, EmuTime::param time) override;
19
20 template<typename Archive>
21 void serialize(Archive& ar, unsigned version);
22
23private:
24 MC6850 mc6850;
25};
26
27} // namespace openmsx
28
29#endif
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.
Definition: JVCMSXMIDI.cc:60
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
Definition: JVCMSXMIDI.cc:47
JVCMSXMIDI(const DeviceConfig &config)
Definition: JVCMSXMIDI.cc:22
byte readIO(word port, EmuTime::param time) override
Read a byte from an IO port at a certain time from this device.
Definition: JVCMSXMIDI.cc:34
void reset(EmuTime::param time) override
This method is called on reset.
Definition: JVCMSXMIDI.cc:29
void serialize(Archive &ar, unsigned version)
Definition: JVCMSXMIDI.cc:74
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