openMSX
Main Page
Namespaces
Classes
Files
File List
File Members
cpu
VDPIODelay.hh
Go to the documentation of this file.
1
#ifndef VDPIODELAY_HH
2
#define VDPIODELAY_HH
3
4
#include "
MSXDevice.hh
"
5
#include "
Clock.hh
"
6
7
namespace
openmsx {
8
9
class
MSXCPU
;
10
class
MSXCPUInterface
;
11
12
class
VDPIODelay
:
public
MSXDevice
13
{
14
public
:
15
VDPIODelay
(
const
DeviceConfig
& config,
MSXCPUInterface
& cpuInterface);
16
17
virtual
byte
readIO
(
word
port,
EmuTime::param
time);
18
virtual
byte
peekIO
(
word
port,
EmuTime::param
time)
const
;
19
virtual
void
writeIO
(
word
port,
byte
value,
EmuTime::param
time);
20
21
const
MSXDevice
&
getInDevice
(
byte
port)
const
;
22
MSXDevice
*&
getInDevicePtr
(
byte
port);
23
MSXDevice
*&
getOutDevicePtr
(
byte
port);
24
25
template
<
typename
Archive>
26
void
serialize
(Archive& ar,
unsigned
version);
27
28
private
:
29
void
delay(
EmuTime::param
time);
30
31
MSXCPU
& cpu;
32
MSXDevice
* inDevices[4];
33
MSXDevice
* outDevices[4];
35
Clock<7159090>
lastTime;
36
};
37
38
}
// namespace openmsx
39
40
#endif
Generated on Mon May 20 2013 12:17:01 for openMSX by
1.8.1.2