From 90fe32b5ad0b7bf19ce099f16288a020202d0906 Mon Sep 17 00:00:00 2001 From: adelikat Date: Mon, 11 Nov 2013 17:03:55 +0000 Subject: [PATCH] Lua - emu.getregister(s) - support PCE/PCE-CD/SGX --- .../Consoles/PC Engine/PCEngine.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation/Consoles/PC Engine/PCEngine.cs b/BizHawk.Emulation/Consoles/PC Engine/PCEngine.cs index 317ff7e53b..0de404e926 100644 --- a/BizHawk.Emulation/Consoles/PC Engine/PCEngine.cs +++ b/BizHawk.Emulation/Consoles/PC Engine/PCEngine.cs @@ -600,7 +600,22 @@ namespace BizHawk.Emulation.Consoles.TurboGrafx public List> GetCpuFlagsAndRegisters() { - throw new NotImplementedException(); + return new List> + { + new KeyValuePair("A", Cpu.A), + new KeyValuePair("X", Cpu.X), + new KeyValuePair("Y", Cpu.Y), + new KeyValuePair("PC", Cpu.PC), + new KeyValuePair("S", Cpu.S), + new KeyValuePair("MPR-0", Cpu.MPR[0]), + new KeyValuePair("MPR-1", Cpu.MPR[1]), + new KeyValuePair("MPR-2", Cpu.MPR[2]), + new KeyValuePair("MPR-3", Cpu.MPR[3]), + new KeyValuePair("MPR-4", Cpu.MPR[4]), + new KeyValuePair("MPR-5", Cpu.MPR[5]), + new KeyValuePair("MPR-6", Cpu.MPR[6]), + new KeyValuePair("MPR-7", Cpu.MPR[7]), + }; } public void Dispose()