Remove debug logging:
This commit is contained in:
parent
cfa3c0da05
commit
51e0893c04
@ -333,18 +333,11 @@ impl I8080 {
|
|||||||
if self.halted {
|
if self.halted {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
println!(
|
|
||||||
"Finish {} ({:?}), got data {}",
|
|
||||||
self.cycle,
|
|
||||||
self.get_mem_cycle(),
|
|
||||||
data
|
|
||||||
);
|
|
||||||
let mut cond_failed = false;
|
let mut cond_failed = false;
|
||||||
match self.cycle {
|
match self.cycle {
|
||||||
MCycle::M1 => {
|
MCycle::M1 => {
|
||||||
self.pc += 1;
|
self.pc += 1;
|
||||||
self.opcode = OPCODE_TABLE[data as usize];
|
self.opcode = OPCODE_TABLE[data as usize];
|
||||||
dbg!(self.opcode);
|
|
||||||
match self.opcode {
|
match self.opcode {
|
||||||
Opcode::MovMR(_) => (),
|
Opcode::MovMR(_) => (),
|
||||||
Opcode::MovRM(_) => (),
|
Opcode::MovRM(_) => (),
|
||||||
@ -796,7 +789,6 @@ impl I8080 {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
if self.cycle == self.opcode.max_m_cycle() || cond_failed {
|
if self.cycle == self.opcode.max_m_cycle() || cond_failed {
|
||||||
println!("Instruction done");
|
|
||||||
self.cycle = MCycle::M1;
|
self.cycle = MCycle::M1;
|
||||||
} else {
|
} else {
|
||||||
self.cycle = self.cycle.next();
|
self.cycle = self.cycle.next();
|
||||||
|
@ -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
|
resp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -231,10 +231,8 @@ impl eframe::App for AltairEmulator {
|
|||||||
match sw {
|
match sw {
|
||||||
frontpanel::ActionSwitch::RunStop => {
|
frontpanel::ActionSwitch::RunStop => {
|
||||||
if state == SwitchState::Up {
|
if state == SwitchState::Up {
|
||||||
println!("STOP RUN");
|
|
||||||
self.running = false;
|
self.running = false;
|
||||||
} else if state == SwitchState::Down {
|
} else if state == SwitchState::Down {
|
||||||
println!("START RUN");
|
|
||||||
self.running = true;
|
self.running = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user