Skip to content

Commit

Permalink
clarify logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanballs committed Sep 12, 2024
1 parent 6924347 commit 1fc3b02
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/mmu/ppu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,15 @@ impl PPU {
0xFF4A => self.wy,
0xFF4B => self.wx,

0xFF4D => 0,

0xFF48 => self.obj_palette_0,
0xFF49 => self.obj_palette_1,

0xFe00..=0xFE9F => self.voam[(addr - 0xFE00) as usize],

_ => {
dbg!(addr);
println!("tried to read {:#04x}", addr);
todo!()
}
}
Expand All @@ -174,13 +176,14 @@ impl PPU {

0xFF4A => self.wy = value,
0xFF4B => self.wx = value,
0xFF4D => (),

0xFe00..=0xFE9F => self.voam[(addr - 0xFE00) as usize] = value,

0xFF7F => (),

_ => {
println!("PPU does not support address {:x?}", addr);
println!("tried to write {:#04x}", addr);
todo!()
}
}
Expand Down

0 comments on commit 1fc3b02

Please sign in to comment.