GGHawkLink: tracelogger
This commit is contained in:
parent
5665617d9b
commit
ea92bdcc66
|
@ -4,7 +4,7 @@ using BizHawk.Emulation.Common;
|
||||||
|
|
||||||
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
||||||
{
|
{
|
||||||
public sealed partial class SMS : ICodeDataLogger
|
public partial class SMS : ICodeDataLogger
|
||||||
{
|
{
|
||||||
public void SetCDL(ICodeDataLog cdl)
|
public void SetCDL(ICodeDataLog cdl)
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,7 +6,7 @@ using BizHawk.Emulation.Common;
|
||||||
|
|
||||||
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
||||||
{
|
{
|
||||||
public sealed partial class SMS : IDebuggable
|
public partial class SMS : IDebuggable
|
||||||
{
|
{
|
||||||
public IDictionary<string, RegisterValue> GetCpuFlagsAndRegisters()
|
public IDictionary<string, RegisterValue> GetCpuFlagsAndRegisters()
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
||||||
{
|
{
|
||||||
public sealed partial class SMS : IEmulator
|
public partial class SMS : IEmulator
|
||||||
{
|
{
|
||||||
public IEmulatorServiceProvider ServiceProvider { get; }
|
public IEmulatorServiceProvider ServiceProvider { get; }
|
||||||
|
|
||||||
|
@ -97,15 +97,6 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
||||||
_frame++;
|
_frame++;
|
||||||
PSG.BeginFrame(Cpu.TotalExecutedCycles);
|
PSG.BeginFrame(Cpu.TotalExecutedCycles);
|
||||||
|
|
||||||
if (Tracer.Enabled)
|
|
||||||
{
|
|
||||||
Cpu.TraceCallback = s => Tracer.Put(s);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Cpu.TraceCallback = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!IsGameGear && IsGameGear_C)
|
if (!IsGameGear && IsGameGear_C)
|
||||||
{
|
{
|
||||||
Cpu.NonMaskableInterrupt = start_pressed;
|
Cpu.NonMaskableInterrupt = start_pressed;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
||||||
{
|
{
|
||||||
public sealed partial class SMS : IInputPollable
|
public partial class SMS : IInputPollable
|
||||||
{
|
{
|
||||||
public int LagCount
|
public int LagCount
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,7 +6,7 @@ using BizHawk.Emulation.Common;
|
||||||
|
|
||||||
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
||||||
{
|
{
|
||||||
public sealed partial class SMS
|
public partial class SMS
|
||||||
{
|
{
|
||||||
private MemoryDomainList MemoryDomains;
|
private MemoryDomainList MemoryDomains;
|
||||||
private readonly Dictionary<string, MemoryDomainByteArray> _byteArrayDomains = new Dictionary<string, MemoryDomainByteArray>();
|
private readonly Dictionary<string, MemoryDomainByteArray> _byteArrayDomains = new Dictionary<string, MemoryDomainByteArray>();
|
||||||
|
|
|
@ -4,7 +4,7 @@ using BizHawk.Emulation.Common;
|
||||||
|
|
||||||
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
||||||
{
|
{
|
||||||
public sealed partial class SMS : ISaveRam
|
public partial class SMS : ISaveRam
|
||||||
{
|
{
|
||||||
public byte[] CloneSaveRam()
|
public byte[] CloneSaveRam()
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
||||||
{
|
{
|
||||||
public sealed partial class SMS : ISettable<SMS.SMSSettings, SMS.SMSSyncSettings>
|
public partial class SMS : ISettable<SMS.SMSSettings, SMS.SMSSyncSettings>
|
||||||
{
|
{
|
||||||
public SMSSettings GetSettings()
|
public SMSSettings GetSettings()
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
||||||
{
|
{
|
||||||
// Sound refactor TODO: Implement ISoundProvider without the need for FakeSyncSound
|
// Sound refactor TODO: Implement ISoundProvider without the need for FakeSyncSound
|
||||||
public sealed partial class SMS
|
public partial class SMS
|
||||||
{
|
{
|
||||||
private FakeSyncSound _fakeSyncSound;
|
private FakeSyncSound _fakeSyncSound;
|
||||||
private IAsyncSoundProvider ActiveSoundProvider;
|
private IAsyncSoundProvider ActiveSoundProvider;
|
||||||
|
|
|
@ -6,7 +6,7 @@ using BizHawk.Emulation.Common;
|
||||||
|
|
||||||
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
||||||
{
|
{
|
||||||
public sealed partial class SMS : IStatable
|
public partial class SMS : IStatable
|
||||||
{
|
{
|
||||||
public bool BinarySaveStatesPreferred
|
public bool BinarySaveStatesPreferred
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
||||||
isPorted: false,
|
isPorted: false,
|
||||||
isReleased: true)]
|
isReleased: true)]
|
||||||
[ServiceNotApplicable(typeof(IDriveLight))]
|
[ServiceNotApplicable(typeof(IDriveLight))]
|
||||||
public sealed partial class SMS : IEmulator, ISaveRam, IStatable, IInputPollable, IRegionable,
|
public partial class SMS : IEmulator, ISaveRam, IStatable, IInputPollable, IRegionable,
|
||||||
IDebuggable, ISettable<SMS.SMSSettings, SMS.SMSSyncSettings>, ICodeDataLogger
|
IDebuggable, ISettable<SMS.SMSSettings, SMS.SMSSyncSettings>, ICodeDataLogger
|
||||||
{
|
{
|
||||||
[CoreConstructor("SMS", "SG", "GG")]
|
[CoreConstructor("SMS", "SG", "GG")]
|
||||||
|
@ -262,7 +262,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
||||||
|
|
||||||
public DisplayType Region { get; set; }
|
public DisplayType Region { get; set; }
|
||||||
|
|
||||||
private ITraceable Tracer { get; set; }
|
private readonly ITraceable Tracer;
|
||||||
|
|
||||||
string DetermineRegion(string gameRegion)
|
string DetermineRegion(string gameRegion)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
||||||
public enum VdpMode { SMS, GameGear }
|
public enum VdpMode { SMS, GameGear }
|
||||||
|
|
||||||
// Emulates the Texas Instruments TMS9918 VDP.
|
// Emulates the Texas Instruments TMS9918 VDP.
|
||||||
public sealed partial class VDP : IVideoProvider
|
public partial class VDP : IVideoProvider
|
||||||
{
|
{
|
||||||
// VDP State
|
// VDP State
|
||||||
public byte[] VRAM = new byte[0x4000]; //16kb video RAM
|
public byte[] VRAM = new byte[0x4000]; //16kb video RAM
|
||||||
|
|
Loading…
Reference in New Issue