openMSX
RenShaTurbo.hh
Go to the documentation of this file.
1 #ifndef RENSHATURBO_HH
2 #define RENSHATURBO_HH
3 
4 #include "Autofire.hh"
5 #include "EmuTime.hh"
6 #include <optional>
7 
8 namespace openmsx {
9 
10 class MSXMotherBoard;
11 class XMLElement;
12 
21 {
22 public:
23  RenShaTurbo(MSXMotherBoard& motherBoard,
24  const XMLElement& machineConfig);
25 
30  [[nodiscard]] bool getSignal(EmuTime::param time);
31 
32  template<typename Archive>
33  void serialize(Archive& ar, unsigned version);
34 
35 private:
36  // The Autofire circuit
37  std::optional<Autofire> autofire;
38 };
39 
40 } // namespace openmsx
41 
42 #endif
Ren-Sha Turbo is the autofire in several MSX 2+ models and in the MSX turbo R.
Definition: RenShaTurbo.hh:21
RenShaTurbo(MSXMotherBoard &motherBoard, const XMLElement &machineConfig)
Definition: RenShaTurbo.cc:7
void serialize(Archive &ar, unsigned version)
Definition: RenShaTurbo.cc:29
bool getSignal(EmuTime::param time)
Get the output signal in negative logic.
Definition: RenShaTurbo.cc:23
This file implemented 3 utility functions:
Definition: Autofire.cc:9