From c131791608e1c9bd8c3c1d2778c70299c3ea9285 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Mon, 16 Jan 2023 16:01:50 +1100 Subject: [PATCH] fix write to rom errors... for now --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index a203690..8e14d8f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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;