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
const std::string & getDescription() const final override
uint8_t byte
8 bit unsigned integer
Definition: openmsx.hh:26
unsigned getSize() const final override
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
MSXMotherBoard & getMotherBoard() const
byte read(unsigned address) override
const std::string & getName() const
void write(unsigned address, byte value) override
SimpleDebuggable(MSXMotherBoard &motherBoard, std::string name, std::string description, unsigned size)