openMSX
Main Page
Namespaces
Classes
Files
File List
File Members
fdc
DiskDrive.cc
Go to the documentation of this file.
1
#include "
DiskDrive.hh
"
2
#include "
DiskExceptions.hh
"
3
#include "
unreachable.hh
"
4
5
namespace
openmsx {
6
7
// class DiskDrive
8
9
DiskDrive::~DiskDrive
()
10
{
11
}
12
13
14
// class DummyDrive
15
16
bool
DummyDrive::isDiskInserted
()
const
17
{
18
return
false
;
19
}
20
21
bool
DummyDrive::isWriteProtected
()
const
22
{
23
return
true
;
24
}
25
26
bool
DummyDrive::isDoubleSided
()
const
27
{
28
return
false
;
29
}
30
31
bool
DummyDrive::isTrack00
()
const
32
{
33
return
false
;
// National_FS-5500F1 2nd drive detection depends on this
34
}
35
36
void
DummyDrive::setSide
(
bool
/*side*/
)
37
{
38
// ignore
39
}
40
41
void
DummyDrive::step
(
bool
/*direction*/
,
EmuTime::param
/*time*/
)
42
{
43
// ignore
44
}
45
46
void
DummyDrive::setMotor
(
bool
/*status*/
,
EmuTime::param
/*time*/
)
47
{
48
// ignore
49
}
50
51
bool
DummyDrive::indexPulse
(
EmuTime::param
/*time*/
)
52
{
53
return
false
;
54
}
55
56
EmuTime
DummyDrive::getTimeTillIndexPulse
(
EmuTime::param
/*time*/
,
int
/*count*/
)
57
{
58
return
EmuTime::infinity
;
59
}
60
61
void
DummyDrive::setHeadLoaded
(
bool
/*status*/
,
EmuTime::param
/*time*/
)
62
{
63
// ignore
64
}
65
66
bool
DummyDrive::headLoaded
(
EmuTime::param
/*time*/
)
67
{
68
return
false
;
69
}
70
71
void
DummyDrive::writeTrack
(
const
RawTrack
&
/*track*/
)
72
{
73
UNREACHABLE
;
74
}
75
76
void
DummyDrive::readTrack
(
RawTrack
&
/*track*/
)
77
{
78
UNREACHABLE
;
79
}
80
81
EmuTime
DummyDrive::getNextSector
(
EmuTime::param
/*time*/
,
RawTrack
&
/*track*/
,
82
RawTrack::Sector
&
/*sector*/
)
83
{
84
return
EmuTime::infinity
;
85
}
86
87
bool
DummyDrive::diskChanged
()
88
{
89
return
false
;
90
}
91
92
bool
DummyDrive::peekDiskChanged
()
const
93
{
94
return
false
;
95
}
96
97
bool
DummyDrive::isDummyDrive
()
const
98
{
99
return
true
;
100
}
101
102
}
// namespace openmsx
Generated on Mon May 20 2013 12:16:57 for openMSX by
1.8.1.2