mbc bugfix

This commit is contained in:
Alex Janka 2023-02-12 19:15:05 +11:00
parent 5989a1a49f
commit 0fde806f62

View file

@ -143,12 +143,10 @@ impl Mbc for Mbc1 {
} }
0x6000..0x8000 => { 0x6000..0x8000 => {
// mode select // mode select
self.bank_mode = if data == 0x1 { self.bank_mode = if (data & 0x1) == 0x1 {
BankingMode::Advanced BankingMode::Advanced
} else if data == 0x0 {
BankingMode::Simple
} else { } else {
self.bank_mode BankingMode::Simple
}; };
} }
_ => {} _ => {}