mirror of
https://github.com/holub/mame
synced 2025-07-23 02:01:08 +03:00
floppy: Added TODO comments; revert stp_w ignore on spin-up until further evidence
This commit is contained in:
parent
bb02422fda
commit
3998824713
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user