pcm channels read-only

This commit is contained in:
Alex Janka 2023-04-21 22:01:06 +10:00
parent 124b823ae1
commit 7fba9cca89

View file

@ -429,8 +429,8 @@ where
CgbIoAddress::Palette(address) => self.gpu.set_cgb_palette(address, data), CgbIoAddress::Palette(address) => self.gpu.set_cgb_palette(address, data),
CgbIoAddress::ObjPriority => self.gpu.set_obj_priority(data), CgbIoAddress::ObjPriority => self.gpu.set_obj_priority(data),
CgbIoAddress::WramBank => *selected = (data & 0b111).max(1) as usize, CgbIoAddress::WramBank => *selected = (data & 0b111).max(1) as usize,
CgbIoAddress::Pcm12 => todo!(), CgbIoAddress::Pcm12 => {},
CgbIoAddress::Pcm34 => todo!(), CgbIoAddress::Pcm34 => {},
CgbIoAddress::Unused(v) => { CgbIoAddress::Unused(v) => {
println!("attempt to set 0x{v:0>4X} to 0x{data:0>2X}") println!("attempt to set 0x{v:0>4X} to 0x{data:0>2X}")
} }