fix write to rom errors... for now

This commit is contained in:
Alex Janka 2023-01-16 16:01:50 +11:00
parent 121129fe35
commit c131791608

View file

@ -96,8 +96,8 @@ impl Memory {
fn set(&mut self, address: Address, data: u8) {
match address {
0x0..0x8000 => {
panic!("tried to write to rom?");
// self.rom[address as usize] = data;
// change this with MBC code...
println!("tried to write to rom?");
}
0x8000..0xA000 => {
self.vram[(address - 0x8000) as usize] = data;