diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GBDisassembler.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GBDisassembler.cs new file mode 100644 index 0000000000..49b70e768c --- /dev/null +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GBDisassembler.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using BizHawk.Emulation.Common; + +namespace BizHawk.Emulation.Cores.Nintendo.Gameboy +{ + public class GBDisassembler : VerifiedDisassembler + { + public override IEnumerable AvailableCpus + { + get { yield return "Z80GB"; } + } + + public override string PCRegisterName + { + get { return "PC"; } + } + + public override string Disassemble(MemoryDomain m, uint addr, out int length) + { + ushort tmp; + string ret = Common.Components.Z80GB.NewDisassembler.Disassemble((ushort)addr, (a) => m.PeekByte(a), out tmp); + length = tmp; + return ret; + } + } +}