From b87a8f81ef2f014688db554703d49086962ae375 Mon Sep 17 00:00:00 2001 From: pjht Date: Thu, 1 Feb 2024 18:58:30 -0600 Subject: [PATCH] Fix single step only working when switch pushed up --- src/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state.rs b/src/state.rs index ba68fe9..f7ea83a 100644 --- a/src/state.rs +++ b/src/state.rs @@ -48,7 +48,7 @@ impl EmuState { } } ActionSwitch::SingleStep => { - if state == SwitchState::Up { + if state != SwitchState::Neut { self.run_cpu_cycle(); } }