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

fix: unimplemented MBC1 error

parent c059985f
No related branches found
No related tags found
No related merge requests found
Pipeline #995 passed
...@@ -443,7 +443,9 @@ pub static MBC1: Mbc = Mbc { ...@@ -443,7 +443,9 @@ pub static MBC1: Mbc = Mbc {
} }
// ROM mode selection // ROM mode selection
0x6000 | 0x7000 => { 0x6000 | 0x7000 => {
unimplemented!("ROM mode selection for MBC1 is not implemented"); if value == 0x1 && rom.rom_bank_count > 32 {
unimplemented!("Advanced ROM banking mode for MBC1 is not implemented");
}
} }
_ => panic!("Writing to unknown Cartridge ROM location 0x{:04x}", addr), _ => panic!("Writing to unknown Cartridge ROM 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