BizHawk/BizHawk.Emulation.Cores/CPUs/x86/Timing.cs

20 lines
498 B
C#
Raw Normal View History

namespace BizHawk.Emulation.Cores.Components.x86
2011-01-11 02:55:51 +00:00
{
public partial class x86<CpuType> where CpuType : struct, x86CpuType
{
// TODO test if static on these is a performance boost
// it would be appropriate if so because closed types have their own static variables
private int timing_mov_ri8;
private int timing_mov_ri16;
2011-01-11 02:55:51 +00:00
private void InitTiming()
{
if (typeof(CpuType) == typeof(Intel8086))
{
timing_mov_ri8 = 4;
timing_mov_ri16 = 4;
}
}
}
2011-01-11 02:55:51 +00:00
}