From b9519d9b7a2ad07088e37a78b1e59c30f001a043 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Sat, 30 Oct 2021 14:02:05 +0900 Subject: [PATCH] chore(bus): stub some CGB IO registers --- src/bus.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bus.rs b/src/bus.rs index 7df3c11..8398081 100644 --- a/src/bus.rs +++ b/src/bus.rs @@ -262,6 +262,7 @@ impl BusIo for Bus { 0x49 => self.ppu.monochrome.obj_palette_1.into(), 0x4A => self.ppu.pos.window_y, 0x4B => self.ppu.pos.window_x, + 0x4F => 0xFF, // CGB VRAM Bank Select _ => { warn!("Attempted read from {:#06X} on IO", addr); 0xFF @@ -372,12 +373,14 @@ impl BusIo for Bus { 0x4A => self.ppu.pos.window_y = byte, 0x4B => self.ppu.pos.window_x = byte, 0x4D => {} // CGB Specific Register + 0x4F => {} // CGB VRAM Bank Select 0x50 => { // Disable Boot ROM if byte != 0 { self.boot = None; } } + 0x70 => {} // CGB WRAM Bank Select _ => warn!("Attempted write of {:#04X} to {:#06X} on IO", byte, addr), }; }