cleaning
This commit is contained in:
parent
2f8c606f79
commit
30cbe63090
|
@ -327,7 +327,6 @@ impl CPU {
|
||||||
fn render_scanline_obj(&mut self, scanline: u8, lcdc: &LCDC) {
|
fn render_scanline_obj(&mut self, scanline: u8, lcdc: &LCDC) {
|
||||||
let objs = self.parse_oam(scanline, &lcdc.obj_size);
|
let objs = self.parse_oam(scanline, &lcdc.obj_size);
|
||||||
for object in objs {
|
for object in objs {
|
||||||
println!("rendering object");
|
|
||||||
self.render_object(scanline, object, &lcdc.obj_size);
|
self.render_object(scanline, object, &lcdc.obj_size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -132,7 +132,10 @@ impl Memory {
|
||||||
0x8000..0xA000 => {
|
0x8000..0xA000 => {
|
||||||
return self.vram[(address - 0x8000) as usize];
|
return self.vram[(address - 0x8000) as usize];
|
||||||
}
|
}
|
||||||
0xA000..0xC000 => 0xFF,
|
0xA000..0xC000 => {
|
||||||
|
// cart ram
|
||||||
|
0xFF
|
||||||
|
}
|
||||||
0xC000..0xE000 => {
|
0xC000..0xE000 => {
|
||||||
return self.ram[(address - 0xC000) as usize];
|
return self.ram[(address - 0xC000) as usize];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue