From ab608178f39f57483f6c791c78c66c4d510aca8a Mon Sep 17 00:00:00 2001 From: Ryan Carsten Schmidt Date: Mon, 4 Dec 2023 08:13:32 -0600 Subject: [PATCH] Consider Disk II state machine state C to be a NOP Continuation of #1224 --- Components/DiskII/DiskII.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Components/DiskII/DiskII.cpp b/Components/DiskII/DiskII.cpp index df566f9f1..7c6ebe1c8 100644 --- a/Components/DiskII/DiskII.cpp +++ b/Components/DiskII/DiskII.cpp @@ -149,7 +149,7 @@ void DiskII::decide_clocking_preference() { // none, given that drives are not running, the shift register has already emptied or stopped and there's no flux about to be received. if(!(inputs_ & ~input_flux)) { const bool is_stuck_at_nop = - !flux_duration_ && state_machine_[(state_ & 0xf0) | inputs_ | ((shift_register_&0x80) >> 6)] == state_ && (state_ &0xf) == 0x8; + !flux_duration_ && state_machine_[(state_ & 0xf0) | inputs_ | ((shift_register_ & 0x80) >> 6)] == state_ && ((state_ & 0xf) == 0x8 || (state_ & 0xf) == 0xc); clocking_preference_ = (drive_is_sleeping_[0] && drive_is_sleeping_[1] && (!shift_register_ || is_stuck_at_nop) && (inputs_&input_flux))