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 }