From 06031ad6494ddd0f2ea01226e22118a96318932e Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Fri, 3 Mar 2023 11:25:44 +1100 Subject: [PATCH] mbc5 ram addr --- src/processor/memory/rom/mbcs/mbc5.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/processor/memory/rom/mbcs/mbc5.rs b/src/processor/memory/rom/mbcs/mbc5.rs index e299b0a..c18f28d 100644 --- a/src/processor/memory/rom/mbcs/mbc5.rs +++ b/src/processor/memory/rom/mbcs/mbc5.rs @@ -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