N64.ITraceable: log non-zero regs

still gigantic file for 1 frame

todo: implement internal tracer instead
This commit is contained in:
feos 2016-08-14 01:12:53 +03:00
parent 6d32112c9e
commit d4c7175910
1 changed files with 14 additions and 2 deletions

View File

@ -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);
}
}