From 39af03aebfffea892557149353dfaf07a19ec30d Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Thu, 1 Jul 2021 23:09:02 -0500 Subject: [PATCH] chore(bus): stub 0xFF4D --- src/bus.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bus.rs b/src/bus.rs index 11a590f..d8c51fe 100644 --- a/src/bus.rs +++ b/src/bus.rs @@ -247,6 +247,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, + 0x4D => 0xFF, // CGB Specific Register _ => unimplemented!("Unable to read {:#06X} in I/O Registers", addr), } } @@ -376,7 +377,7 @@ impl BusIo for Bus { 0x49 => self.ppu.monochrome.obj_palette_1 = byte.into(), 0x4A => self.ppu.pos.window_y = byte, 0x4B => self.ppu.pos.window_x = byte, - 0x4D => {} // Writing to this address is useful on the CGB only + 0x4D => {} // CGB Specific Register 0x50 => { // Disable Boot ROM if byte != 0 {