From 51e0893c049973a80ad56ed5b76cc17108fa1e76 Mon Sep 17 00:00:00 2001 From: pjht Date: Tue, 30 Jan 2024 12:58:05 -0600 Subject: [PATCH] Remove debug logging: --- src/cpu.rs | 8 -------- src/frontpanel.rs | 3 --- src/main.rs | 2 -- 3 files changed, 13 deletions(-) diff --git a/src/cpu.rs b/src/cpu.rs index bc5a1ca..e193e96 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -333,18 +333,11 @@ impl I8080 { if self.halted { return; } - println!( - "Finish {} ({:?}), got data {}", - self.cycle, - self.get_mem_cycle(), - data - ); let mut cond_failed = false; match self.cycle { MCycle::M1 => { self.pc += 1; self.opcode = OPCODE_TABLE[data as usize]; - dbg!(self.opcode); match self.opcode { Opcode::MovMR(_) => (), Opcode::MovRM(_) => (), @@ -796,7 +789,6 @@ impl I8080 { }, } if self.cycle == self.opcode.max_m_cycle() || cond_failed { - println!("Instruction done"); self.cycle = MCycle::M1; } else { self.cycle = self.cycle.next(); diff --git a/src/frontpanel.rs b/src/frontpanel.rs index 670f20e..7027fb8 100644 --- a/src/frontpanel.rs +++ b/src/frontpanel.rs @@ -228,9 +228,6 @@ impl Widget for &mut Frontpanel<'_> { } } }); - // if ui.input_mut(|input| input.consume_shortcut(&KeyboardShortcut::new(Modifiers::NONE, Key::Q))) { - // dbg!(); - // } resp } } diff --git a/src/main.rs b/src/main.rs index b0762da..734b55a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -231,10 +231,8 @@ impl eframe::App for AltairEmulator { match sw { frontpanel::ActionSwitch::RunStop => { if state == SwitchState::Up { - println!("STOP RUN"); self.running = false; } else if state == SwitchState::Down { - println!("START RUN"); self.running = true; } }