BizHawk/BizHawk.Emulation.Cores/CPUs/HuC6280/IDisassemblable.cs

35 lines
690 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BizHawk.Emulation.Common;
namespace BizHawk.Emulation.Cores.Components.H6280
{
partial class HuC6280 : IDisassemblable
{
public string Cpu
{
get { return "6280"; }
set { }
}
public string PCRegisterName
{
get { return "PC"; }
}
public IEnumerable<string> AvailableCpus
{
get { yield return "6280"; }
}
public string Disassemble(MemoryDomain m, uint addr, out int length)
{
return DisassembleExt((ushort)addr, out length,
(a) => m.PeekByte(a),
(a) => (ushort)(m.PeekByte(a) | m.PeekByte(a + 1) << 8));
}
}
}