~ubuntu-branches/debian/squeeze/stella/squeeze

« back to all changes in this revision

Viewing changes to src/debugger/RamDebug.hxx

  • Committer: Bazaar Package Importer
  • Author(s): Mario Iseli
  • Date: 2006-04-08 18:38:25 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20060408183825-vu1jk57rk929derx
* New Maintainer (Closes: #361345)
* New upstream release (Closes: #349725)
* Build-Depend now on libslang2-dev (Closes: #325577)
* Complete rebuild of debian/, upgraded to policy-standards
  3.6.2 and compat-level 5.
* Removed stellarc since stella only reads ~/.stellarc and even
  works without a first config.
* New debian/watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//============================================================================
 
2
//
 
3
//   SSSS    tt          lll  lll       
 
4
//  SS  SS   tt           ll   ll        
 
5
//  SS     tttttt  eeee   ll   ll   aaaa 
 
6
//   SSSS    tt   ee  ee  ll   ll      aa
 
7
//      SS   tt   eeeeee  ll   ll   aaaaa  --  "An Atari 2600 VCS Emulator"
 
8
//  SS  SS   tt   ee      ll   ll  aa  aa
 
9
//   SSSS     ttt  eeeee llll llll  aaaaa
 
10
//
 
11
// Copyright (c) 1995-2005 by Bradford W. Mott and the Stella team
 
12
//
 
13
// See the file "license" for information on usage and redistribution of
 
14
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
 
15
//
 
16
// $Id: RamDebug.hxx,v 1.3 2005/07/08 14:36:17 stephena Exp $
 
17
//============================================================================
 
18
 
 
19
#ifndef RAM_DEBUG_HXX
 
20
#define RAM_DEBUG_HXX
 
21
 
 
22
class System;
 
23
 
 
24
#include "Array.hxx"
 
25
#include "DebuggerSystem.hxx"
 
26
 
 
27
class RamState : public DebuggerState
 
28
{
 
29
  public:
 
30
    IntArray ram;
 
31
};
 
32
 
 
33
class RamDebug : public DebuggerSystem
 
34
{
 
35
  public:
 
36
    RamDebug(Debugger* dbg, Console* console);
 
37
 
 
38
    DebuggerState& getState();
 
39
    DebuggerState& getOldState() { return myOldState; }
 
40
 
 
41
    void saveOldState();
 
42
 
 
43
    int read(int offset);
 
44
    void write(int offset, int value);
 
45
 
 
46
  private:
 
47
    RamState myState;
 
48
    RamState myOldState;
 
49
 
 
50
    System* mySystem;
 
51
};
 
52
 
 
53
#endif