mbc5 ram addr
This commit is contained in:
parent
cbc5a634e2
commit
06031ad649
|
@ -73,7 +73,7 @@ impl Mbc for Mbc5 {
|
|||
fn set(&mut self, address: Address, data: u8) {
|
||||
match address {
|
||||
0x0..0x2000 => {
|
||||
if data == 0xA {
|
||||
if (data & 0xF) == 0xA {
|
||||
self.ram_enabled = true
|
||||
} else {
|
||||
self.ram_enabled = false
|
||||
|
|
Loading…
Reference in a new issue