Move IDebuggable to its own file, in anticipation of it having enough stuff to warrant it

This commit is contained in:
adelikat 2014-11-23 16:10:46 +00:00
parent e6e2972e3d
commit 133d690363
3 changed files with 21 additions and 16 deletions

View File

@ -61,6 +61,7 @@
<Compile Include="Interfaces\CoreComms.cs" />
<Compile Include="Interfaces\IController.cs" />
<Compile Include="Interfaces\ICoreFileProvider.cs" />
<Compile Include="Interfaces\IDebuggable.cs" />
<Compile Include="Interfaces\IEmulator.cs" />
<Compile Include="Interfaces\IMemoryDomains.cs" />
<Compile Include="Interfaces\ISettable.cs" />

View File

@ -0,0 +1,20 @@
using System.Collections.Generic;
namespace BizHawk.Emulation.Common
{
public interface IDebuggable : IEmulator
{
/// <summary>
/// Returns a list of Cpu registers and their current state
/// </summary>
/// <returns></returns>
Dictionary<string, int> GetCpuFlagsAndRegisters();
/// <summary>
/// Sets a given Cpu register to the given value
/// </summary>
/// <param name="register"></param>
/// <param name="value"></param>
void SetCpuRegister(string register, int value);
}
}

View File

@ -128,21 +128,5 @@ namespace BizHawk.Emulation.Common
CoreComm CoreComm { get; }
}
public interface IDebuggable : IEmulator
{
/// <summary>
/// Returns a list of Cpu registers and their current state
/// </summary>
/// <returns></returns>
Dictionary<string, int> GetCpuFlagsAndRegisters();
/// <summary>
/// Sets a given Cpu register to the given value
/// </summary>
/// <param name="register"></param>
/// <param name="value"></param>
void SetCpuRegister(string register, int value);
}
public enum DisplayType { NTSC, PAL, DENDY }
}