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

feat: new ignore on error I/O writing

parent eb1016cd
No related branches found
No related tags found
No related merge requests found
......@@ -5,4 +5,5 @@ Cargo.lock
/.idea
/target
/res/roms
/examples/*/target
......@@ -75,7 +75,7 @@ fn main() {
let mut game_boy = GameBoy::new();
game_boy.load_boot_default();
game_boy.load_rom("C:/Users/joamag/Desktop/tetris.gb");
game_boy.load_rom("../../res/roms/tetris.gb");
let mut counter = 0;
......
......@@ -64,7 +64,7 @@ impl Mmu {
0x000 | 0x100 | 0x200 | 0x300 | 0x400 | 0x500 | 0x600 | 0x700 | 0x800 | 0x900
| 0xa00 | 0xb00 | 0xc00 | 0xd00 => self.ram[(addr & 0x1fff) as usize],
0xe00 => {
println!("READING FROM PPU OAM - NOT IMPLEMENTED");
println!("Reading from PPU OAM - NOT IMPLEMENTED");
0x00
}
0xf00 => {
......@@ -126,7 +126,7 @@ impl Mmu {
self.ram[(addr & 0x1fff) as usize] = value;
}
0xe00 => {
println!("WRITING TO PPU OAM");
println!("Writing to PPU OAM");
}
0xf00 => {
if addr >= 0xff80 {
......
......@@ -241,7 +241,8 @@ impl Ppu {
color_index => panic!("Invalid palette color index {:04x}", color_index),
}
}
}
},
0x007f => (),
addr => panic!("Writing in unknown PPU location 0x{:04x}", addr),
}
}
......
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