~ubuntu-branches/debian/sid/stella/sid

« back to all changes in this revision

Viewing changes to src/emucore/Cart0840.hxx

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2013-06-28 09:53:13 UTC
  • mfrom: (1.3.6)
  • Revision ID: package-import@ubuntu.com-20130628095313-j8jkkgxpvx1t18ym
Tags: 3.9-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "bspf.hxx"
24
24
#include "Cart.hxx"
25
25
#include "System.hxx"
 
26
#ifdef DEBUGGER_SUPPORT
 
27
  #include "Cart0840Widget.hxx"
 
28
#endif
26
29
 
27
30
/**
28
31
  Cartridge class used for 0840 "Econobanking" 8K bankswitched games.  There
32
35
*/
33
36
class Cartridge0840 : public Cartridge
34
37
{
 
38
  friend class Cartridge0840Widget;
 
39
 
35
40
  public:
36
41
    /**
37
42
      Create a new cartridge using the specified image
118
123
    */
119
124
    string name() const { return "Cartridge0840"; }
120
125
 
 
126
  #ifdef DEBUGGER_SUPPORT
 
127
    /**
 
128
      Get debugger widget responsible for accessing the inner workings
 
129
      of the cart.
 
130
    */
 
131
    CartDebugWidget* debugWidget(GuiObject* boss,
 
132
        const GUI::Font& font, int x, int y, int w, int h)
 
133
    {
 
134
      return new Cartridge0840Widget(boss, font, x, y, w, h, *this);
 
135
    }
 
136
  #endif
 
137
 
121
138
  public:
122
139
    /**
123
140
      Get the byte at the specified address.