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

« back to all changes in this revision

Viewing changes to src/emucore/m6502/src/NullDev.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Tom Lear
  • Date: 1999-11-06 16:41:05 UTC
  • Revision ID: james.westby@ubuntu.com-19991106164105-iygopamo5mpcozvx
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//============================================================================
 
2
//
 
3
// MM     MM  6666  555555  0000   2222
 
4
// MMMM MMMM 66  66 55     00  00 22  22
 
5
// MM MMM MM 66     55     00  00     22
 
6
// MM  M  MM 66666  55555  00  00  22222  --  "A 6502 Microprocessor Emulator"
 
7
// MM     MM 66  66     55 00  00 22
 
8
// MM     MM 66  66 55  55 00  00 22
 
9
// MM     MM  6666   5555   0000  222222
 
10
//
 
11
// Copyright (c) 1995-1998 by Bradford W. Mott
 
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: NullDev.cxx,v 1.3 1998/08/29 15:30:02 bwmott Exp $
 
17
//============================================================================
 
18
 
 
19
#include "NullDev.hxx"
 
20
 
 
21
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
22
NullDevice::NullDevice()
 
23
{
 
24
}
 
25
 
 
26
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
27
NullDevice::~NullDevice()
 
28
{
 
29
}
 
30
 
 
31
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
32
const char* NullDevice::name() const
 
33
{
 
34
  return "NULL";
 
35
}
 
36
 
 
37
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
38
void NullDevice::reset()
 
39
{
 
40
}
 
41
 
 
42
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
43
void NullDevice::install(System& system)
 
44
{
 
45
  mySystem = &system;
 
46
}
 
47
 
 
48
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
49
uInt8 NullDevice::peek(uInt16 address)
 
50
{
 
51
  cerr << hex << "NullDevice: peek(" << address << ")" << endl;
 
52
  return 0;
 
53
}
 
54
 
 
55
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
56
void NullDevice::poke(uInt16 address, uInt8 value)
 
57
{
 
58
  cerr << hex << "NullDevice: poke(" << address << "," << value << ")" << endl;
 
59
}
 
60