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

« back to all changes in this revision

Viewing changes to src/emucore/CartDPCPlus.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:
14
14
// See the file "License.txt" for information on usage and redistribution of
15
15
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
16
16
//
17
 
// $Id: CartDPCPlus.hxx 2579 2013-01-04 19:49:01Z stephena $
 
17
// $Id: CartDPCPlus.hxx 2703 2013-04-21 20:02:55Z stephena $
18
18
//============================================================================
19
19
 
20
20
#ifndef CARTRIDGE_DPC_PLUS_HXX
24
24
#ifdef THUMB_SUPPORT
25
25
class Thumbulator;
26
26
#endif
 
27
#ifdef DEBUGGER_SUPPORT
 
28
  #include "CartDPCPlusWidget.hxx"
 
29
#endif
27
30
 
28
31
#include "bspf.hxx"
29
32
#include "Cart.hxx"
30
33
 
31
34
/**
32
 
  Cartridge class used for DPC+.  There are six 4K program banks, a 4K
33
 
  display bank, 1K frequency table and the DPC chip.  For complete details on
34
 
  the DPC chip see David P. Crane's United States Patent Number 4,644,495.
35
 
 
36
 
  @author  Darrell Spice Jr, Fred Quimby, Stephen Anthony
37
 
  @version $Id: CartDPCPlus.hxx 2579 2013-01-04 19:49:01Z stephena $
 
35
  Cartridge class used for DPC+, derived from Pitfall II.  There are six 4K
 
36
  program banks, a 4K display bank, 1K frequency table and the DPC chip.
 
37
  DPC chip access is mapped to $1000 - $1080 ($1000 - $103F is read port,
 
38
  $1040 - $107F is write port).
 
39
 
 
40
  For complete details on the DPC chip see David P. Crane's United States
 
41
  Patent Number 4,644,495.
 
42
 
 
43
  @author  Darrell Spice Jr, Fred Quimby, Stephen Anthony, Bradford W. Mott
 
44
  @version $Id: CartDPCPlus.hxx 2703 2013-04-21 20:02:55Z stephena $
38
45
*/
39
46
class CartridgeDPCPlus : public Cartridge
40
47
{
 
48
  friend class CartridgeDPCPlusWidget;
 
49
 
41
50
  public:
42
51
    /**
43
52
      Create a new cartridge using the specified image
129
138
 
130
139
      @return The name of the object
131
140
    */
132
 
    string name() const { return "CartridgeDPCPlus"; }
 
141
    string name() const { return "CartridgeDPC+"; }
 
142
 
 
143
  #ifdef DEBUGGER_SUPPORT
 
144
    /**
 
145
      Get debugger widget responsible for accessing the inner workings
 
146
      of the cart.
 
147
    */
 
148
    CartDebugWidget* debugWidget(GuiObject* boss,
 
149
        const GUI::Font& font, int x, int y, int w, int h)
 
150
    {
 
151
      return new CartridgeDPCPlusWidget(boss, font, x, y, w, h, *this);
 
152
    }
 
153
  #endif
133
154
 
134
155
  public:
135
156
    /**