remove prints
This commit is contained in:
parent
71a87cf88e
commit
fced7af144
3 changed files with 2 additions and 9 deletions
|
@ -375,8 +375,7 @@ where
|
|||
CgbIoAddress::Pcm12 => self.apu.get_pcm_1_2(),
|
||||
CgbIoAddress::Pcm34 => self.apu.get_pcm_3_4(),
|
||||
CgbIoAddress::Unused(v) => {
|
||||
println!("attempt to get 0x{v:0>4X}");
|
||||
todo!()
|
||||
todo!("attempt to get 0x{v:0>4X}")
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -388,7 +387,6 @@ where
|
|||
}
|
||||
|
||||
fn set_io(&mut self, address: IoAddress, data: u8) {
|
||||
// println!("set 0x{:0>4X} to 0x{:0>2X}", address.inner(), data);
|
||||
match address {
|
||||
IoAddress::Joypad => self.joypad.mmio_write(data),
|
||||
IoAddress::Serial(address) => match address.inner() {
|
||||
|
@ -435,7 +433,7 @@ where
|
|||
CgbIoAddress::Pcm12 => {},
|
||||
CgbIoAddress::Pcm34 => {},
|
||||
CgbIoAddress::Unused(v) => {
|
||||
println!("attempt to set 0x{v:0>4X} to 0x{data:0>2X}")
|
||||
todo!("attempt to set 0x{v:0>4X} to 0x{data:0>2X}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,13 +35,11 @@ where
|
|||
pub(crate) fn try_switch_speed(&mut self) -> bool {
|
||||
if let Some(cgb_peripherals) = &mut self.cgb_peripherals {
|
||||
if cgb_peripherals.double_speed.prepared && !cgb_peripherals.double_speed.current {
|
||||
println!("switching to double speed");
|
||||
cgb_peripherals.double_speed.current = true;
|
||||
cgb_peripherals.double_speed.prepared = false;
|
||||
return true;
|
||||
} else if cgb_peripherals.double_speed.prepared && cgb_peripherals.double_speed.current
|
||||
{
|
||||
println!("switching to normal speed");
|
||||
cgb_peripherals.double_speed.current = false;
|
||||
cgb_peripherals.double_speed.prepared = false;
|
||||
return true;
|
||||
|
|
|
@ -149,9 +149,6 @@ where
|
|||
fn handle_interrupts(&mut self) -> usize {
|
||||
if self.memory.ime {
|
||||
if let Some(interrupt) = self.memory.interrupts.get_next_interrupt() {
|
||||
// if interrupt != Interrupt::Vblank {
|
||||
// println!("interrupt: {interrupt:?}");
|
||||
// }
|
||||
let interrupt_addr = match interrupt {
|
||||
Interrupt::Vblank => 0x40,
|
||||
Interrupt::LcdStat => 0x48,
|
||||
|
|
Loading…
Add table
Reference in a new issue