From 7fba9cca89d773b54b07e9ebc354df0022242e8e Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Fri, 21 Apr 2023 22:01:06 +1000 Subject: [PATCH] pcm channels read-only --- lib/src/processor/memory.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/processor/memory.rs b/lib/src/processor/memory.rs index 78f7cda..5eb6915 100644 --- a/lib/src/processor/memory.rs +++ b/lib/src/processor/memory.rs @@ -429,8 +429,8 @@ where CgbIoAddress::Palette(address) => self.gpu.set_cgb_palette(address, data), CgbIoAddress::ObjPriority => self.gpu.set_obj_priority(data), CgbIoAddress::WramBank => *selected = (data & 0b111).max(1) as usize, - CgbIoAddress::Pcm12 => todo!(), - CgbIoAddress::Pcm34 => todo!(), + CgbIoAddress::Pcm12 => {}, + CgbIoAddress::Pcm34 => {}, CgbIoAddress::Unused(v) => { println!("attempt to set 0x{v:0>4X} to 0x{data:0>2X}") }