mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-09 06:29:33 +00:00
Temporarily disabled spin-down as harmful to the status register if following anything other than a Type 1 command.
This commit is contained in:
parent
5c8ecd3051
commit
d8ecc52de8
@ -196,11 +196,11 @@ void WD1770::process_index_hole()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// motor power-down
|
// motor power-down
|
||||||
if(index_hole_count_ == 9 && !(status_&Flag::Busy))
|
// if(index_hole_count_ == 9 && !(status_&Flag::Busy))
|
||||||
{
|
// {
|
||||||
status_ &= ~Flag::MotorOn;
|
// status_ &= ~Flag::MotorOn;
|
||||||
set_motor_on(false);
|
// set_motor_on(false);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
// +------+----------+-------------------------+
|
// +------+----------+-------------------------+
|
||||||
@ -266,6 +266,8 @@ void WD1770::posit_event(Event new_event_type)
|
|||||||
// WAIT_FOR_TIME(1); // TODO: what should the time cost here really be?
|
// WAIT_FOR_TIME(1); // TODO: what should the time cost here really be?
|
||||||
printf("Starting %02x\n", command_);
|
printf("Starting %02x\n", command_);
|
||||||
status_ |= Flag::Busy;
|
status_ |= Flag::Busy;
|
||||||
|
if(command_ == 0x8c)
|
||||||
|
printf(".");
|
||||||
if(!(command_ & 0x80)) goto begin_type_1;
|
if(!(command_ & 0x80)) goto begin_type_1;
|
||||||
if(!(command_ & 0x40)) goto begin_type_2;
|
if(!(command_ & 0x40)) goto begin_type_2;
|
||||||
goto begin_type_3;
|
goto begin_type_3;
|
||||||
|
Loading…
Reference in New Issue
Block a user