From 9418d1e98afee48c51c4cb8c80fbf5bcfa037e4a Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Thu, 23 Feb 2023 11:01:50 +1100 Subject: [PATCH] mbc5 w/ rumble --- src/processor/memory/rom.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/processor/memory/rom.rs b/src/processor/memory/rom.rs index 791c66c..e11c4ce 100644 --- a/src/processor/memory/rom.rs +++ b/src/processor/memory/rom.rs @@ -38,6 +38,18 @@ impl Rom { println!("MBC5 w/battery - battery not implemented!"); Box::new(Mbc5::init(data, rom_size, ram_size)) } + 0x1C => { + println!("MBC5 w/rumble - rumble not implemented!"); + Box::new(Mbc5::init(data, rom_size, 0)) + } + 0x1D => { + println!("MBC5 w/rumble - rumble not implemented!"); + Box::new(Mbc5::init(data, rom_size, ram_size)) + } + 0x1E => { + println!("MBC5 w/rumble + battery - rumble + battery not implemented!"); + Box::new(Mbc5::init(data, rom_size, ram_size)) + } _ => panic!("unimplemented mbc: {:#X}", data[0x147]), }; Self { title, mbc }