openMSX
Main Page
Namespaces
Classes
Files
File List
File Members
MSXMatsushita.hh
Go to the documentation of this file.
1
#ifndef MSXMATSUSHITA_HH
2
#define MSXMATSUSHITA_HH
3
4
#include "
MSXDevice.hh
"
5
#include "
MSXSwitchedDevice.hh
"
6
#include <memory>
7
8
namespace
openmsx {
9
10
class
FirmwareSwitch;
11
class
SRAM
;
12
13
class
MSXMatsushita
:
public
MSXDevice
,
public
MSXSwitchedDevice
14
{
15
public
:
16
explicit
MSXMatsushita
(
const
DeviceConfig
& config);
17
virtual
~MSXMatsushita
();
18
19
// MSXDevice
20
virtual
void
reset
(
EmuTime::param
time);
21
22
// MSXSwitchedDevice
23
virtual
byte
readSwitchedIO
(
word
port,
EmuTime::param
time);
24
virtual
byte
peekSwitchedIO
(
word
port,
EmuTime::param
time)
const
;
25
virtual
void
writeSwitchedIO
(
word
port,
byte
value,
EmuTime::param
time);
26
27
template
<
typename
Archive>
28
void
serialize
(Archive& ar,
unsigned
version);
29
30
private
:
31
const
std::unique_ptr<FirmwareSwitch> firmwareSwitch;
32
const
std::unique_ptr<SRAM> sram;
33
word
address;
34
nibble
color1, color2;
35
byte
pattern;
36
};
37
38
}
// namespace openmsx
39
40
#endif
Generated on Mon May 20 2013 12:16:59 for openMSX by
1.8.1.2