oops
This commit is contained in:
parent
7bb3eeae5b
commit
76864d5d47
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue