imagedev/floppy: add has_trk00 property, initially for IBM 6360 8-inch drives

This commit is contained in:
Sergey Svishchev 2017-01-11 02:15:49 +03:00
parent 5fb832ed24
commit 62363c0c21
2 changed files with 5 additions and 3 deletions

View File

@ -181,6 +181,7 @@ floppy_image_device::floppy_image_device(const machine_config &mconfig, device_t
form_factor(0),
motor_always_on(false),
dskchg_writable(false),
has_trk00_sensor(true),
dir(0), stp(0), wtg(0), mon(0), ss(0), idx(0), wpt(0), rdy(0), dskchg(0),
ready(false),
rpm(0),
@ -316,6 +317,7 @@ void floppy_image_device::device_start()
rpm = 0;
motor_always_on = false;
dskchg_writable = false;
has_trk00_sensor = true;
idx = 0;
@ -2283,14 +2285,13 @@ ibm_6360::~ibm_6360()
{
}
//ol ibm_6360::trk00_r() { return true; }
void ibm_6360::setup_characteristics()
{
form_factor = floppy_image::FF_8;
tracks = 77;
sides = 1;
motor_always_on = true;
has_trk00_sensor = false;
set_rpm(360);
}

View File

@ -113,7 +113,7 @@ public:
bool wpt_r() { return wpt; }
int dskchg_r() { return dskchg; }
bool trk00_r() { return cyl != 0; }
bool trk00_r() { return (has_trk00_sensor ? (cyl != 0) : 1); }
int idx_r() { return idx; }
int mon_r() { return mon; }
bool ss_r() { return ss; }
@ -164,6 +164,7 @@ protected:
uint32_t form_factor; /* 3"5, 5"25, etc */
bool motor_always_on;
bool dskchg_writable;
bool has_trk00_sensor;
/* state of input lines */
int dir; /* direction */