GBHawk: MBC7: Fix Command Master

This commit is contained in:
alyosha-tas 2018-04-09 10:35:23 -04:00
parent 9f7ce12f44
commit 0fc046bea9
1 changed files with 3 additions and 6 deletions

View File

@ -66,7 +66,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
}
else if (addr < 0xB000)
{
if (RAM_enable_2)
if (RAM_enable_1 && RAM_enable_2)
{
return Register_Access_Read(addr);
}
@ -107,15 +107,12 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
}
else if (addr < 0x6000)
{
if (RAM_enable_1)
{
RAM_enable_2 = (value & 0xF0) == 0x40;
}
RAM_enable_2 = (value & 0xF0) == 0x40;
}
}
else
{
if (RAM_enable_2)
if (RAM_enable_1 && RAM_enable_2)
{
Register_Access_Write(addr, value);
}