2015-01-16 01:38:47 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
using BizHawk.Emulation.Common;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Emulation.Cores.Consoles.Nintendo.QuickNES
|
|
|
|
|
{
|
|
|
|
|
public partial class QuickNES : IDebuggable
|
|
|
|
|
{
|
|
|
|
|
public IDictionary<string, RegisterValue> GetCpuFlagsAndRegisters()
|
|
|
|
|
{
|
|
|
|
|
int[] regs = new int[6];
|
|
|
|
|
var ret = new Dictionary<string, RegisterValue>();
|
2016-02-18 01:17:49 +00:00
|
|
|
|
QN.qn_get_cpuregs(Context, regs);
|
2015-01-16 01:38:47 +00:00
|
|
|
|
ret["A"] = (byte)regs[0];
|
|
|
|
|
ret["X"] = (byte)regs[1];
|
|
|
|
|
ret["Y"] = (byte)regs[2];
|
|
|
|
|
ret["SP"] = (ushort)regs[3];
|
|
|
|
|
ret["PC"] = (ushort)regs[4];
|
|
|
|
|
ret["P"] = (byte)regs[5];
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[FeatureNotImplemented]
|
|
|
|
|
public void SetCpuRegister(string register, int value)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool CanStep(StepType type) { return false; }
|
|
|
|
|
|
|
|
|
|
[FeatureNotImplemented]
|
|
|
|
|
public void Step(StepType type) { throw new NotImplementedException(); }
|
|
|
|
|
|
|
|
|
|
public IMemoryCallbackSystem MemoryCallbacks
|
|
|
|
|
{
|
|
|
|
|
[FeatureNotImplemented]
|
|
|
|
|
get { throw new NotImplementedException(); }
|
|
|
|
|
}
|
2017-01-10 01:23:05 +00:00
|
|
|
|
|
|
|
|
|
[FeatureNotImplemented]
|
2018-05-12 16:55:42 +00:00
|
|
|
|
public long TotalExecutedCycles
|
2017-01-10 01:23:05 +00:00
|
|
|
|
{
|
|
|
|
|
get { throw new NotImplementedException(); }
|
|
|
|
|
}
|
2015-01-16 01:38:47 +00:00
|
|
|
|
}
|
|
|
|
|
}
|