core: Fix debug read of OAM memory
Former-commit-id: 49c79b74146b89197f2f3bc8ac58f26abb230146 Former-commit-id: acda49ed0fffc481fe4b77fee1ef99b7038215df
This commit is contained in:
parent
27e530896e
commit
aeecd98757
|
@ -722,7 +722,7 @@ impl DebugRead for Gpu {
|
||||||
match page {
|
match page {
|
||||||
PAGE_PALRAM => self.palette_ram.read_8(addr & 0x3ff),
|
PAGE_PALRAM => self.palette_ram.read_8(addr & 0x3ff),
|
||||||
PAGE_VRAM => self.vram.read_8(addr & ((VIDEO_RAM_SIZE as u32) - 1)),
|
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!(),
|
_ => unreachable!(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue