From 63de2cf5ae566c721baaa5772ec28176cfa4cf1a Mon Sep 17 00:00:00 2001 From: pjht Date: Thu, 1 Feb 2024 19:15:09 -0600 Subject: [PATCH] Fix reset not resetting M-cycle --- src/cpu.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cpu.rs b/src/cpu.rs index 6f0e28b..1358137 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -234,6 +234,7 @@ impl I8080 { self.pc = 0; self.halted = false; self.inte = false; + self.cycle = MCycle::M1; } pub fn get_mem_cycle(&self) -> MemCycle {