Skip to content

Commit

Permalink
Don't spin when SA1 is stopped.
Browse files Browse the repository at this point in the history
  • Loading branch information
bearoso committed Jan 13, 2019
1 parent 2b5d9af commit 3dbac11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sa1cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ void S9xSA1MainLoop (void)
{
if (Memory.FillRAM[0x2200] & 0x60)
{
SA1.Cycles += 6; // FIXME
#undef CPU
int cycles = CPU.Cycles * 3;
#define CPU SA1
SA1.Cycles = cycles;
S9xSA1UpdateTimer();
return;
}
Expand Down

0 comments on commit 3dbac11

Please sign in to comment.