openMSX
SimpleDebuggable.hh
Go to the documentation of this file.
1 #ifndef SIMPLEDEBUGGABLE_HH
2 #define SIMPLEDEBUGGABLE_HH
3 
4 #include "Debuggable.hh"
5 #include "EmuTime.hh"
6 
7 namespace openmsx {
8 
9 class MSXMotherBoard;
10 
12 {
13 public:
14  unsigned getSize() const final override;
15  const std::string& getDescription() const final override;
16 
17  byte read(unsigned address) override;
18  virtual byte read(unsigned address, EmuTime::param time);
19  void write(unsigned address, byte value) override;
20  virtual void write(unsigned address, byte value, EmuTime::param time);
21 
22  const std::string& getName() const { return name; }
23  MSXMotherBoard& getMotherBoard() const { return motherBoard; }
24 
25 protected:
26  SimpleDebuggable(MSXMotherBoard& motherBoard, std::string name,
27  std::string description, unsigned size);
29 
30 private:
31  MSXMotherBoard& motherBoard;
32  const std::string name;
33  const std::string description;
34  const unsigned size;
35 };
36 
37 } // namespace openmsx
38 
39 #endif
openmsx::SimpleDebuggable::getMotherBoard
MSXMotherBoard & getMotherBoard() const
Definition: SimpleDebuggable.hh:23
openmsx::SimpleDebuggable
Definition: SimpleDebuggable.hh:11
openmsx::SimpleDebuggable::~SimpleDebuggable
~SimpleDebuggable()
Definition: SimpleDebuggable.cc:19
openmsx::Debuggable
Definition: Debuggable.hh:9
openmsx::SimpleDebuggable::getName
const std::string & getName() const
Definition: SimpleDebuggable.hh:22
openmsx::MSXMotherBoard
Definition: MSXMotherBoard.hh:59
openmsx::SimpleDebuggable::write
void write(unsigned address, byte value) override
Definition: SimpleDebuggable.cc:44
Debuggable.hh
EmuTime.hh
openmsx::SimpleDebuggable::getDescription
const std::string & getDescription() const final override
Definition: SimpleDebuggable.cc:29
openmsx::SimpleDebuggable::getSize
unsigned getSize() const final override
Definition: SimpleDebuggable.cc:24
openmsx::SimpleDebuggable::SimpleDebuggable
SimpleDebuggable(MSXMotherBoard &motherBoard, std::string name, std::string description, unsigned size)
Definition: SimpleDebuggable.cc:8
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
openmsx::SimpleDebuggable::read
byte read(unsigned address) override
Definition: SimpleDebuggable.cc:34