openMSX
RomKonamiKeyboardMaster.hh
Go to the documentation of this file.
1 #ifndef ROMKONAMIKEYBOARDMASTER_HH
2 #define ROMKONAMIKEYBOARDMASTER_HH
3 
4 #include "RomBlocks.hh"
5 
6 namespace openmsx {
7 
8 class VLM5030;
9 
11 {
12 public:
13  RomKonamiKeyboardMaster(const DeviceConfig& config, std::unique_ptr<Rom> rom);
15 
16  void reset(EmuTime::param time) override;
17  void writeIO(word port, byte value, EmuTime::param time) override;
18  byte readIO(word port, EmuTime::param time) override;
19  byte peekIO(word port, EmuTime::param time) const override;
20 
21  template<typename Archive>
22  void serialize(Archive& ar, unsigned version);
23 
24 private:
25  const std::unique_ptr<VLM5030> vlm5030;
26 };
27 
28 } // namespace openmsx
29 
30 #endif
void serialize(Archive &ar, unsigned version)
unsigned char byte
8 bit unsigned integer
Definition: openmsx.hh:33
byte readIO(word port, EmuTime::param time) override
Read a byte from an IO port at a certain time from this device.
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:7
unsigned short word
16 bit unsigned integer
Definition: openmsx.hh:38
RomKonamiKeyboardMaster(const DeviceConfig &config, std::unique_ptr< Rom > rom)
const std::unique_ptr< Rom > rom
Definition: MSXRom.hh:24
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.
void reset(EmuTime::param time) override
This method is called on reset.