GBHawk: another mbc3 fix

This commit is contained in:
alyosha-tas 2019-10-11 21:28:46 -04:00
parent 1c51f09e65
commit 8384f4298d
1 changed files with 1 additions and 5 deletions

View File

@ -188,7 +188,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
{ {
RTC_regs[RAM_bank - 8] = value; RTC_regs[RAM_bank - 8] = value;
RTC_low_clock = RTC_timer = 0; if ((RAM_bank - 8) == 0) { RTC_low_clock = RTC_timer = 0; }
halt = (RTC_regs[4] & 0x40) > 0; halt = (RTC_regs[4] & 0x40) > 0;
} }
@ -210,8 +210,6 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
else else
{ {
RTC_offset = value; RTC_offset = value;
Console.WriteLine("RTC: " + RTC_offset);
} }
} }
@ -230,8 +228,6 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
if (RTC_low_clock == 32768) if (RTC_low_clock == 32768)
{ {
RTC_low_clock = 0; RTC_low_clock = 0;
// adjust for slight RTC error
RTC_timer = RTC_offset; RTC_timer = RTC_offset;
RTC_regs[0]++; RTC_regs[0]++;