~ubuntu-branches/ubuntu/quantal/vice/quantal

« back to all changes in this revision

Viewing changes to src/resid/sid.cc

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2009-03-31 00:37:15 UTC
  • mfrom: (1.1.7 upstream) (9.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090331003715-i5yisvcfv7mgz3eh
Tags: 2.1.dfsg-1
* New major upstream release (closes: #495937).
* Add desktop files (closes: #501181).

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
//  along with this program; if not, write to the Free Software
17
17
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
18
//  ---------------------------------------------------------------------------
 
19
// C64 DTV modifications written by
 
20
//   Daniel Kahlin <daniel@kahlin.net>
 
21
// Copyright (C) 2007  Daniel Kahlin <daniel@kahlin.net>
19
22
 
20
23
#include "sid.h"
21
24
#include <math.h>
63
66
 
64
67
  filter.set_chip_model(model);
65
68
  extfilt.set_chip_model(model);
 
69
 
 
70
  is_dtv = (model == DTVSID) ? true : false;
66
71
}
67
72
 
68
73
 
149
154
{
150
155
  switch (offset) {
151
156
  case 0x19:
 
157
    if (is_dtv)
 
158
      return 0x00;
152
159
    return potx.readPOT();
153
160
  case 0x1a:
 
161
    if (is_dtv)
 
162
      return 0x00;
154
163
    return poty.readPOT();
155
164
  case 0x1b:
156
165
    return voice[2].wave.readOSC();
246
255
  case 0x18:
247
256
    filter.writeMODE_VOL(value);
248
257
    break;
 
258
  case 0x1e:
 
259
    if (is_dtv)
 
260
      voice[0].wave.writeACC_HI(value);
 
261
    break;
 
262
  case 0x1f:
 
263
    if (is_dtv)
 
264
      voice[1].envelope.writeENV(value);
 
265
    break;
249
266
  default:
250
267
    break;
251
268
  }