2017-04-25 16:06:50 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2014-12-14 18:35:35 +00:00
|
|
|
|
using BizHawk.Emulation.Common;
|
2017-11-19 15:36:38 +00:00
|
|
|
|
using BizHawk.Emulation.Common.Components.LR35902;
|
2014-12-14 18:35:35 +00:00
|
|
|
|
|
|
|
|
|
namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
|
|
|
|
|
{
|
|
|
|
|
public class GBDisassembler : VerifiedDisassembler
|
|
|
|
|
{
|
|
|
|
|
public override IEnumerable<string> AvailableCpus
|
|
|
|
|
{
|
|
|
|
|
get { yield return "Z80GB"; }
|
|
|
|
|
}
|
|
|
|
|
|
2017-04-25 16:06:50 +00:00
|
|
|
|
public override string PCRegisterName => "PC";
|
2014-12-14 18:35:35 +00:00
|
|
|
|
|
|
|
|
|
public override string Disassemble(MemoryDomain m, uint addr, out int length)
|
|
|
|
|
{
|
|
|
|
|
ushort tmp;
|
2017-11-19 15:36:38 +00:00
|
|
|
|
string ret = LR35902.Disassemble((ushort)addr, a => m.PeekByte(a), out tmp);
|
2014-12-14 18:35:35 +00:00
|
|
|
|
length = tmp;
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|