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

« back to all changes in this revision

Viewing changes to src/debugger/TIADebug.hxx

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Kitt
  • Date: 2010-07-12 23:49:36 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100712234936-juawrr3etzhr2qpv
Tags: 3.1.2-1
* New maintainer (closes: #532039).
* New upstream version (closes: #461121):
  - includes launcher (closes: #396058).
* Fix the reference to the X Window System in the description (closes:
  #411815).
* Move to main, DFSG-free ROMs are available (see README.Debian).
* Enhance the package description.
* Drop the libslang2-dev dependency (closes: #560274).
* Remove the Encoding entry from stella.desktop.
* Avoid ignoring errors when cleaning.
* Add ${misc:Depends} to the package dependencies.
* Provide a doc-base file to install the documentation using doc-base.
* Switch to debhelper 7 with a simplified rules file.
* Use autotools-dev to provide updated configuration files.
* Update to Standards-Version 3.9.0:
  - Move to menu section Applications/Emulators.
  - Move the homepage declaration.
* Re-write the manpage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
//  SS  SS   tt   ee      ll   ll  aa  aa
9
9
//   SSSS     ttt  eeeee llll llll  aaaaa
10
10
//
11
 
// Copyright (c) 1995-2008 by Bradford W. Mott and the Stella team
 
11
// Copyright (c) 1995-2010 by Bradford W. Mott, Stephen Anthony
 
12
// and the Stella Team
12
13
//
13
 
// See the file "license" for information on usage and redistribution of
 
14
// See the file "License.txt" for information on usage and redistribution of
14
15
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
15
16
//
16
 
// $Id: TIADebug.hxx,v 1.23 2008/04/19 21:11:52 stephena Exp $
 
17
// $Id: TIADebug.hxx 2001 2010-04-10 21:37:23Z stephena $
17
18
//============================================================================
18
19
 
19
20
#ifndef TIA_DEBUG_HXX
20
21
#define TIA_DEBUG_HXX
21
22
 
22
 
class TIA;
23
23
class Debugger;
24
24
class TiaDebug;
25
25
 
26
26
#include "Array.hxx"
27
27
#include "DebuggerSystem.hxx"
 
28
#include "TIA.hxx"
28
29
 
29
30
// pointer types for TIADebug instance methods
30
31
// (used by TiaMethodExpression)
33
34
// call the pointed-to method on the (global) debugger object.
34
35
#define CALL_TIADEBUG_METHOD(method) ( ( Debugger::debugger().tiaDebug().*method)() )
35
36
 
36
 
enum TIALabel {
37
 
        VSYNC = 0,
38
 
        VBLANK,
39
 
        WSYNC,
40
 
        RSYNC,
41
 
        NUSIZ0,
42
 
        NUSIZ1,
43
 
        COLUP0,
44
 
        COLUP1,
45
 
        COLUPF, // $08
46
 
        COLUBK,
47
 
        CTRLPF,
48
 
        REFP0,
49
 
        REFP1,
50
 
        PF0,
51
 
        PF1,
52
 
        PF2,
53
 
        RESP0,  // $10
54
 
        RESP1,
55
 
        RESM0,
56
 
        RESM1,
57
 
        RESBL,
58
 
        AUDC0,
59
 
        AUDC1,
60
 
        AUDF0,
61
 
        AUDF1,  // $18
62
 
        AUDV0,
63
 
        AUDV1,
64
 
        GRP0,
65
 
        GRP1,
66
 
        ENAM0,
67
 
        ENAM1,
68
 
        ENABL,
69
 
        HMP0,   // $20
70
 
        HMP1,
71
 
        HMM0,
72
 
        HMM1,
73
 
        HMBL,
74
 
        VDELP0,
75
 
        VDELP1,
76
 
        VDELBL,
77
 
        RESMP0, // $28
78
 
        RESMP1,
79
 
        HMOVE,
80
 
        HMCLR,
81
 
        CXCLR   // $2C
82
 
};
83
 
 
84
37
// Indices for various IntArray in TiaState
85
38
enum {
86
39
  P0, P1, M0, M1, BL
205
158
    int clocksThisLine();
206
159
    bool vsync();
207
160
    bool vblank();
 
161
    int vsyncAsInt()  { return int(vsync());  } // so we can use _vsync pseudo-register
 
162
    int vblankAsInt() { return int(vblank()); } // so we can use _vblank pseudo-register
208
163
 
209
164
  private:
210
165
    /** Display a color patch for color at given index in the palette */