diff --git a/core/src/gpu/mod.rs b/core/src/gpu/mod.rs index 0ef4ec9..42b4b7f 100644 --- a/core/src/gpu/mod.rs +++ b/core/src/gpu/mod.rs @@ -722,7 +722,7 @@ impl DebugRead for Gpu { match page { PAGE_PALRAM => self.palette_ram.read_8(addr & 0x3ff), PAGE_VRAM => self.vram.read_8(addr & ((VIDEO_RAM_SIZE as u32) - 1)), - PAGE_OAM => self.vram.read_8(addr & 0x3ff), + PAGE_OAM => self.oam.read_8(addr & 0x3ff), _ => unreachable!(), } }