From d8ecc52de8edc0fc2e75499c980aa8104b3a2e94 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 26 Nov 2016 22:27:20 +0800 Subject: [PATCH] Temporarily disabled spin-down as harmful to the status register if following anything other than a Type 1 command. --- Components/1770/1770.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Components/1770/1770.cpp b/Components/1770/1770.cpp index 1939aa93a..83bec4d2f 100644 --- a/Components/1770/1770.cpp +++ b/Components/1770/1770.cpp @@ -196,11 +196,11 @@ void WD1770::process_index_hole() } // motor power-down - if(index_hole_count_ == 9 && !(status_&Flag::Busy)) - { - status_ &= ~Flag::MotorOn; - set_motor_on(false); - } +// if(index_hole_count_ == 9 && !(status_&Flag::Busy)) +// { +// status_ &= ~Flag::MotorOn; +// 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? printf("Starting %02x\n", command_); status_ |= Flag::Busy; + if(command_ == 0x8c) + printf("."); if(!(command_ & 0x80)) goto begin_type_1; if(!(command_ & 0x40)) goto begin_type_2; goto begin_type_3;