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::Pcm12 => self.apu.get_pcm_1_2(),
|
||||||
CgbIoAddress::Pcm34 => self.apu.get_pcm_3_4(),
|
CgbIoAddress::Pcm34 => self.apu.get_pcm_3_4(),
|
||||||
CgbIoAddress::Unused(v) => {
|
CgbIoAddress::Unused(v) => {
|
||||||
println!("attempt to get 0x{v:0>4X}");
|
todo!("attempt to get 0x{v:0>4X}")
|
||||||
todo!()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -388,7 +387,6 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_io(&mut self, address: IoAddress, data: u8) {
|
fn set_io(&mut self, address: IoAddress, data: u8) {
|
||||||
// println!("set 0x{:0>4X} to 0x{:0>2X}", address.inner(), data);
|
|
||||||
match address {
|
match address {
|
||||||
IoAddress::Joypad => self.joypad.mmio_write(data),
|
IoAddress::Joypad => self.joypad.mmio_write(data),
|
||||||
IoAddress::Serial(address) => match address.inner() {
|
IoAddress::Serial(address) => match address.inner() {
|
||||||
|
@ -435,7 +433,7 @@ where
|
||||||
CgbIoAddress::Pcm12 => {},
|
CgbIoAddress::Pcm12 => {},
|
||||||
CgbIoAddress::Pcm34 => {},
|
CgbIoAddress::Pcm34 => {},
|
||||||
CgbIoAddress::Unused(v) => {
|
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 {
|
pub(crate) fn try_switch_speed(&mut self) -> bool {
|
||||||
if let Some(cgb_peripherals) = &mut self.cgb_peripherals {
|
if let Some(cgb_peripherals) = &mut self.cgb_peripherals {
|
||||||
if cgb_peripherals.double_speed.prepared && !cgb_peripherals.double_speed.current {
|
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.current = true;
|
||||||
cgb_peripherals.double_speed.prepared = false;
|
cgb_peripherals.double_speed.prepared = false;
|
||||||
return true;
|
return true;
|
||||||
} else if cgb_peripherals.double_speed.prepared && cgb_peripherals.double_speed.current
|
} 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.current = false;
|
||||||
cgb_peripherals.double_speed.prepared = false;
|
cgb_peripherals.double_speed.prepared = false;
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -149,9 +149,6 @@ where
|
||||||
fn handle_interrupts(&mut self) -> usize {
|
fn handle_interrupts(&mut self) -> usize {
|
||||||
if self.memory.ime {
|
if self.memory.ime {
|
||||||
if let Some(interrupt) = self.memory.interrupts.get_next_interrupt() {
|
if let Some(interrupt) = self.memory.interrupts.get_next_interrupt() {
|
||||||
// if interrupt != Interrupt::Vblank {
|
|
||||||
// println!("interrupt: {interrupt:?}");
|
|
||||||
// }
|
|
||||||
let interrupt_addr = match interrupt {
|
let interrupt_addr = match interrupt {
|
||||||
Interrupt::Vblank => 0x40,
|
Interrupt::Vblank => 0x40,
|
||||||
Interrupt::LcdStat => 0x48,
|
Interrupt::LcdStat => 0x48,
|
||||||
|
|
Loading…
Add table
Reference in a new issue