From a461194a63a542987b1bc5684692f53a61e5031f Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Wed, 21 Mar 2018 15:11:03 -0500 Subject: [PATCH] More clearly check opposite phases And prev should not be checked --- src/apple2.dd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apple2.dd.c b/src/apple2.dd.c index 814d9dd..702cfee 100644 --- a/src/apple2.dd.c +++ b/src/apple2.dd.c @@ -269,7 +269,9 @@ apple2_dd_phaser(apple2dd *drive) // If the opposite cog is also on, then our accounting is for // naught; nullify the step movement. - if ((next & (prev << 2)) || (next & (prev >> 2))) { + if (((next & DD_PHASE1) && (next & DD_PHASE3)) || + ((next & DD_PHASE2) && (next & DD_PHASE4)) + ) { step = 0; }