diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/N64/N64.ITraceable.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/N64/N64.ITraceable.cs index 37b09d2572..48689d3d7b 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/N64/N64.ITraceable.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/N64/N64.ITraceable.cs @@ -28,10 +28,22 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64 var traceInfo = new TraceInfo { - Disassembly = string.Format("{0:X}: {1}", pc, disasm), - RegisterInfo = "" + Disassembly = string.Format("{0:X}: {1}", pc, disasm) }; + var sb = new StringBuilder(); + + foreach (var r in regs) + { + if (r.Value.Value != 0) + sb.Append( + string.Format("{0}:{1} ", + r.Key.Trim(), + r.Value.Value.ToHexString(r.Value.BitSize / 4))); + } + + traceInfo.RegisterInfo = sb.ToString().Trim(); + Put(traceInfo); } }