Update CP1610 to include Halts from SR2

This commit is contained in:
alyosha-tas 2016-12-13 16:47:21 -05:00 committed by GitHub
parent eabd8dbf07
commit 33843265f8
2 changed files with 9 additions and 1 deletions

View File

@ -159,6 +159,14 @@ namespace BizHawk.Emulation.Cores.Components.CP1610
TotalExecutedCycles += cycles;
return cycles;
}
// This simulates the Halting caused by the STIC during visible frame using SR2
if (BusRq && Interruptible) {// && !IntRM && !Interrupted) {
PendingCycles--;
return 1;
}
if (Logging)
{
int addrToAdvance;

View File

@ -95,7 +95,7 @@ namespace BizHawk.Emulation.Cores.Components.CP1610
public void SetBusRq(bool value)
{
BusRq = value;
BusRq = !value;
}
public int GetPendingCycles()