BizHawk/BizHawk.Emulation.Cores/Computers/Commodore64/MOS/Chip6510.IDisassemblable.cs

34 lines
631 B
C#
Raw Normal View History

2017-05-30 17:09:46 +00:00
using System.Collections.Generic;
2016-02-22 23:50:11 +00:00
using BizHawk.Emulation.Common;
2017-05-30 17:09:46 +00:00
using BizHawk.Emulation.Cores.Components.M6502;
2016-02-22 23:50:11 +00:00
namespace BizHawk.Emulation.Cores.Computers.Commodore64.MOS
{
2017-04-24 13:35:05 +00:00
public sealed partial class Chip6510 : IDisassemblable
{
public IEnumerable<string> AvailableCpus
{
get { yield return "6510"; }
}
2016-02-22 23:50:11 +00:00
2017-04-24 13:35:05 +00:00
public string Cpu
{
2017-05-30 17:09:46 +00:00
get
{
return "6510";
}
2017-04-24 13:35:05 +00:00
set
{
}
}
2016-02-22 23:50:11 +00:00
2017-05-30 17:09:46 +00:00
public string PCRegisterName => "PC";
2016-02-22 23:50:11 +00:00
2017-04-24 13:35:05 +00:00
public string Disassemble(MemoryDomain m, uint addr, out int length)
{
2017-05-30 17:09:46 +00:00
return MOS6502X.Disassemble((ushort)addr, out length, CpuPeek);
2017-04-24 13:35:05 +00:00
}
}
2016-02-22 23:50:11 +00:00
}