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

« back to all changes in this revision

Viewing changes to src/emucore/System.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: System.hxx 2579 2013-01-04 19:49:01Z stephena $
 
17
// $Id: System.hxx 2745 2013-05-30 16:07:19Z stephena $
18
18
//============================================================================
19
19
 
20
20
#ifndef SYSTEM_HXX
43
43
  6507 based system and 65536 (2^16) bytes for a 6502 based system.
44
44
 
45
45
  @author  Bradford W. Mott
46
 
  @version $Id: System.hxx 2579 2013-01-04 19:49:01Z stephena $
 
46
  @version $Id: System.hxx 2745 2013-05-30 16:07:19Z stephena $
47
47
*/
48
48
class System : public Serializable
49
49
{
115
115
 
116
116
      @return The attached 6502 microprocessor
117
117
    */
118
 
    M6502& m6502()
119
 
    {
120
 
      return *myM6502;
121
 
    }
 
118
    M6502& m6502() { return *myM6502; }
122
119
 
123
120
    /**
124
121
      Answer the 6532 processor attached to the system.  If a
126
123
 
127
124
      @return The attached 6532 microprocessor
128
125
    */
129
 
    M6532& m6532()
130
 
    {
131
 
      return *myM6532;
132
 
    }
 
126
    M6532& m6532() { return *myM6532; }
133
127
 
134
128
    /**
135
129
      Answer the TIA device attached to the system.
136
130
 
137
131
      @return The attached TIA device
138
132
    */
139
 
    TIA& tia()
140
 
    {
141
 
      return *myTIA;
142
 
    }
 
133
    TIA& tia() { return *myTIA; }
143
134
 
144
135
    /**
145
136
      Answer the random generator attached to the system.
146
137
 
147
138
      @return The random generator
148
139
    */
149
 
    Random& randGenerator()
150
 
    {
151
 
      return *myRandom;
152
 
    }
 
140
    Random& randGenerator() { return *myRandom; }
153
141
 
154
142
    /**
155
143
      Get the null device associated with the system.  Every system 
158
146
 
159
147
      @return The null device associated with the system
160
148
    */
161
 
    NullDevice& nullDevice()
162
 
    {
163
 
      return myNullDevice;
164
 
    }
 
149
    NullDevice& nullDevice() { return myNullDevice; }
165
150
 
166
151
    /**
167
152
      Get the total number of pages available in the system.
198
183
 
199
184
      @param amount The amount to add to the system cycles counter
200
185
    */
201
 
    void incrementCycles(uInt32 amount) 
202
 
    { 
203
 
      myCycles += amount; 
204
 
    }
 
186
    void incrementCycles(uInt32 amount) { myCycles += amount; }
205
187
 
206
188
    /**
207
189
      Reset the system cycle count to zero.  The first thing that
290
272
    /**
291
273
      Access and modify the disassembly type flags for the given
292
274
      address.  Note that while any flag can be used, the disassembly
293
 
      only really acts on SKIP/CODE/GFX/PGFX/DATA/ROW.
 
275
      only really acts on CODE/GFX/PGFX/DATA/ROW.
294
276
    */
295
277
    uInt8 getAccessFlags(uInt16 address);
296
278
    void setAccessFlags(uInt16 address, uInt8 flags);