Skip to content
Snippets Groups Projects
Verified Commit 3df2f878 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

chore: added ignore to not usable memory space

parent 3983c13f
No related branches found
No related tags found
No related merge requests found
Pipeline #2882 failed
...@@ -676,6 +676,8 @@ impl Ppu { ...@@ -676,6 +676,8 @@ impl Ppu {
match addr { match addr {
0x8000..=0x9fff => self.vram[(self.vram_offset + (addr & 0x1fff)) as usize], 0x8000..=0x9fff => self.vram[(self.vram_offset + (addr & 0x1fff)) as usize],
0xfe00..=0xfe9f => self.oam[(addr & 0x009f) as usize], 0xfe00..=0xfe9f => self.oam[(addr & 0x009f) as usize],
// Not Usable
0xfea0..=0xfeff => 0xff,
0xff80..=0xfffe => self.hram[(addr & 0x007f) as usize], 0xff80..=0xfffe => self.hram[(addr & 0x007f) as usize],
0xff40 => 0xff40 =>
{ {
...@@ -737,6 +739,8 @@ impl Ppu { ...@@ -737,6 +739,8 @@ impl Ppu {
self.oam[(addr & 0x009f) as usize] = value; self.oam[(addr & 0x009f) as usize] = value;
self.update_object(addr, value); self.update_object(addr, value);
} }
// Not Usable
0xfea0..=0xfeff => (),
0xff80..=0xfffe => self.hram[(addr & 0x007f) as usize] = value, 0xff80..=0xfffe => self.hram[(addr & 0x007f) as usize] = value,
0xff40 => { 0xff40 => {
self.switch_bg = value & 0x01 == 0x01; self.switch_bg = value & 0x01 == 0x01;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment