openMSX
RomKonamiKeyboardMaster.hh
Go to the documentation of this file.
1 #ifndef ROMKONAMIKEYBOARDMASTER_HH
2 #define ROMKONAMIKEYBOARDMASTER_HH
3 
4 #include "RomBlocks.hh"
5 #include "VLM5030.hh"
6 
7 namespace openmsx {
8 
10 {
11 public:
12  RomKonamiKeyboardMaster(const DeviceConfig& config, std::unique_ptr<Rom> rom);
14 
15  void reset(EmuTime::param time) override;
16  void writeIO(word port, byte value, EmuTime::param time) override;
17  byte readIO(word port, EmuTime::param time) override;
18  byte peekIO(word port, EmuTime::param time) const override;
19 
20  template<typename Archive>
21  void serialize(Archive& ar, unsigned version);
22 
23 private:
24  VLM5030 vlm5030;
25 };
26 
27 } // namespace openmsx
28 
29 #endif
void serialize(Archive &ar, unsigned version)
unsigned char byte
8 bit unsigned integer
Definition: openmsx.hh:27
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:5
unsigned short word
16 bit unsigned integer
Definition: openmsx.hh:32
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.