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

« back to all changes in this revision

Viewing changes to src/debugger/RiotDebug.hxx

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2012-02-05 08:09:05 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20120205080905-9ej05rmkibowsm7j
Tags: 3.5.5-1
* New upstream version.
* Rewrite debian/copyright, using DEP-5 and updating for 2012.
* Update 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-2011 by Bradford W. Mott, Stephen Anthony
 
11
// Copyright (c) 1995-2012 by Bradford W. Mott, Stephen Anthony
12
12
// and the Stella Team
13
13
//
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: RiotDebug.hxx 2199 2011-01-01 16:04:32Z stephena $
 
17
// $Id: RiotDebug.hxx 2343 2012-01-08 16:55:10Z stephena $
18
18
//============================================================================
19
19
 
20
20
#ifndef RIOT_DEBUG_HXX
29
29
class RiotState : public DebuggerState
30
30
{
31
31
  public:
32
 
    uInt8 SWCHA_R, SWCHA_W, SWACNT, SWCHB;
 
32
    uInt8 SWCHA_R, SWCHA_W, SWACNT, SWCHB_R, SWCHB_W, SWBCNT;
33
33
    BoolArray swchaReadBits;
34
34
    BoolArray swchaWriteBits;
35
35
    BoolArray swacntBits;
36
 
    BoolArray swchbBits;
 
36
    BoolArray swchbReadBits;
 
37
    BoolArray swchbWriteBits;
 
38
    BoolArray swbcntBits;
37
39
 
38
40
    uInt8 TIM1T, TIM8T, TIM64T, TIM1024T, INTIM, TIMINT;
39
41
    Int32 TIMCLKS;
40
42
 
41
 
    bool P0_PIN1, P0_PIN2, P0_PIN3, P0_PIN4, P0_PIN6;
42
 
    bool P1_PIN1, P1_PIN2, P1_PIN3, P1_PIN4, P1_PIN6;
 
43
    // These are actually from the TIA, but are I/O related
 
44
    uInt8 INPT0, INPT1, INPT2, INPT3, INPT4, INPT5;
43
45
};
44
46
 
45
47
class RiotDebug : public DebuggerSystem
57
59
    uInt8 swcha(int newVal = -1);
58
60
    uInt8 swacnt(int newVal = -1);
59
61
    uInt8 swchb(int newVal = -1);
 
62
    uInt8 swbcnt(int newVal = -1);
 
63
 
 
64
    /* TIA INPTx and VBLANK registers
 
65
       Techically not part of the RIOT, but more appropriately placed here */
 
66
    uInt8 inpt(int x);
 
67
    bool vblank(int bit);
60
68
 
61
69
    /* Timer registers & associated clock */
62
70
    uInt8 tim1T(int newVal = -1);
67
75
    uInt8 timint();
68
76
    Int32 timClocks();
69
77
 
70
 
    /* Controller pins, from the POV of 'outside' the system
71
 
       (ie, state is determined by what the controller sends to the RIOT)
72
 
       Setting a pin to false is the same as if the external controller
73
 
       pulled the pin low
74
 
    */
75
 
    void setP0Pins(bool Pin1, bool Pin2, bool Pin3, bool Pin4, bool Pin6);
76
 
    void setP1Pins(bool Pin1, bool Pin2, bool Pin3, bool Pin4, bool Pin6);
 
78
    /* Controller ports */
 
79
    Controller& controller(Controller::Jack jack) const;
77
80
 
78
81
    /* Console switches */
79
82
    bool diffP0(int newVal = -1);