This commit is contained in:
adelikat 2015-01-25 17:05:30 +00:00
parent 7bb3eeae5b
commit 76864d5d47
2 changed files with 46 additions and 1 deletions

View File

@ -634,7 +634,9 @@
<Compile Include="Consoles\Nintendo\QuickNES\QuickNES.IDebuggable.cs">
<DependentUpon>QuickNES.cs</DependentUpon>
</Compile>
<Compile Include="Consoles\Nintendo\QuickNES\QuickNES.IDisassembler.cs" />
<Compile Include="Consoles\Nintendo\QuickNES\QuickNES.IDisassembler.cs">
<DependentUpon>QuickNES.cs</DependentUpon>
</Compile>
<Compile Include="Consoles\Nintendo\QuickNES\QuickNES.IInputPollable.cs">
<DependentUpon>QuickNES.cs</DependentUpon>
</Compile>

View File

@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;
using BizHawk.Emulation.Common;
using BizHawk.Emulation.Cores.Components.M6502;
namespace BizHawk.Emulation.Cores.Consoles.Nintendo.QuickNES
{
public partial class QuickNES : IDisassemblable
{
public string Cpu
{
get
{
return "6502";
}
set
{
}
}
public string PCRegisterName
{
get { return "PC"; }
}
public IEnumerable<string> AvailableCpus
{
get { yield return "6502"; }
}
public string Disassemble(MemoryDomain m, uint addr, out int length)
{
return MOS6502X.Disassemble((ushort)addr, out length, PeekSystemBus);
}
private byte PeekSystemBus(ushort addr)
{
return _memoryDomains.SystemBus.PeekByte(addr);
}
}
}