floppy: Added TODO comments; revert stp_w ignore on spin-up until further evidence

This commit is contained in:
Michael Zapf 2017-01-13 21:17:54 +01:00
parent bb02422fda
commit 3998824713

View File

@ -632,7 +632,9 @@ bool floppy_image_device::twosid_r()
void floppy_image_device::stp_w(int state)
{
// Before spin-up is done, ignore step pulses
if (ready_counter > 0) return;
// TODO: There are reports about drives supporting step operation with
// stopped spindle. Need to check that on real drives.
// if (ready_counter > 0) return;
if ( stp != state ) {
stp = state;
@ -755,8 +757,14 @@ attotime floppy_image_device::get_next_index_time(std::vector<uint32_t> &buf, in
attotime floppy_image_device::get_next_transition(const attotime &from_when)
{
if(!image || mon)
return attotime::never;
// If the drive is still spinning up, pretend that no transitions will come
if(!image || mon || ready_counter > 0)
// TODO: Implement a proper spin-up ramp for transition times, also in order
// to cover potential copy protection measures that have direct device
// access (mz)
if (ready_counter > 0)
return attotime::never;
std::vector<uint32_t> &buf = image->get_buffer(cyl, ss, subcyl);