chore: fix condition when logs are printed
This commit is contained in:
parent
2b05571c49
commit
25e44f3e49
|
@ -323,4 +323,8 @@ impl Bus {
|
||||||
// Update the Timer's instance of the following interrupts
|
// Update the Timer's instance of the following interrupts
|
||||||
self.timer.set_interrupt(timer);
|
self.timer.set_interrupt(timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn boot_enabled(&self) -> bool {
|
||||||
|
self.boot.is_some()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,7 @@ impl Cpu {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn step(&mut self) -> Cycle {
|
pub fn step(&mut self) -> Cycle {
|
||||||
if self.reg.pc > 0x100 {
|
if !self.bus.boot_enabled() {
|
||||||
self.log_state().unwrap();
|
self.log_state().unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue