mbc bugfix
This commit is contained in:
parent
5989a1a49f
commit
0fde806f62
|
@ -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
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
|
|
Loading…
Reference in a new issue