C64: No need for LagCycles anymore.
This commit is contained in:
parent
6ed11de85b
commit
3bf37f1c17
|
@ -207,7 +207,6 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64
|
||||||
{
|
{
|
||||||
_board.InputRead = false;
|
_board.InputRead = false;
|
||||||
_board.PollInput();
|
_board.PollInput();
|
||||||
_board.Cpu.LagCycles = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_board.Execute();
|
_board.Execute();
|
||||||
|
|
|
@ -117,14 +117,8 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64.MOS
|
||||||
_cpu.NMI |= _pinNmiLast && !_thisNmi;
|
_cpu.NMI |= _pinNmiLast && !_thisNmi;
|
||||||
_cpu.ExecuteOne();
|
_cpu.ExecuteOne();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
LagCycles++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int LagCycles;
|
|
||||||
|
|
||||||
internal bool AtInstructionStart()
|
internal bool AtInstructionStart()
|
||||||
{
|
{
|
||||||
return _cpu.AtInstructionStart();
|
return _cpu.AtInstructionStart();
|
||||||
|
@ -233,7 +227,6 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64.MOS
|
||||||
ser.EndSection();
|
ser.EndSection();
|
||||||
|
|
||||||
ser.Sync(nameof(_thisNmi), ref _thisNmi);
|
ser.Sync(nameof(_thisNmi), ref _thisNmi);
|
||||||
ser.Sync(nameof(LagCycles), ref LagCycles);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Write(int addr, int val)
|
public void Write(int addr, int val)
|
||||||
|
|
Loading…
Reference in New Issue