This commit is contained in:
Alex Janka 2023-02-08 09:06:21 +11:00
parent 2f8c606f79
commit 30cbe63090
2 changed files with 4 additions and 2 deletions

View file

@ -327,7 +327,6 @@ impl CPU {
fn render_scanline_obj(&mut self, scanline: u8, lcdc: &LCDC) {
let objs = self.parse_oam(scanline, &lcdc.obj_size);
for object in objs {
println!("rendering object");
self.render_object(scanline, object, &lcdc.obj_size);
}
}

View file

@ -132,7 +132,10 @@ impl Memory {
0x8000..0xA000 => {
return self.vram[(address - 0x8000) as usize];
}
0xA000..0xC000 => 0xFF,
0xA000..0xC000 => {
// cart ram
0xFF
}
0xC000..0xE000 => {
return self.ram[(address - 0xC000) as usize];
}