diff --git a/src/main.rs b/src/main.rs index 7ee8380..fb023e2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -167,7 +167,6 @@ impl AltairEmulator { MemCycle::IntaHlt(_) => todo!(), }; self.cpu.finish_m_cycle(data); - self.update_fp(); } fn show_menubar(&mut self, ui: &mut Ui) { @@ -237,6 +236,7 @@ impl AltairEmulator { frontpanel::ActionSwitch::SingleStep => { if state == SwitchState::Up { self.run_cpu_cycle(); + self.update_fp(); } } frontpanel::ActionSwitch::Examine => { @@ -307,6 +307,8 @@ impl eframe::App for AltairEmulator { egui::CentralPanel::default().show(ctx, |ui| self.show_frontpanel(ui)); if self.running { self.run_cpu_cycle(); + self.update_fp(); + } if let Some(option_window) = self.option_window.as_mut() { if option_window.draw(ctx, &mut self.options) {