genesis disasm/tracer: replace IR reg with raw bytes, drop separate PC reg.
This commit is contained in:
parent
8db62b6f2c
commit
7abac10164
|
@ -212,7 +212,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
sfd.InitialDirectory = PathManager.MakeAbsolutePath(Global.Config.PathEntries.LogPathFragment, null);
|
sfd.InitialDirectory = PathManager.MakeAbsolutePath(Global.Config.PathEntries.LogPathFragment, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
sfd.Filter = "Text Files (*.txt)|*.txt|Log Files (*.log)|*.log|All Files|*.*";
|
sfd.Filter = "Log Files (*.log)|*.log|Text Files (*.txt)|*.txt|All Files|*.*";
|
||||||
sfd.RestoreDirectory = true;
|
sfd.RestoreDirectory = true;
|
||||||
var result = sfd.ShowHawkDialog();
|
var result = sfd.ShowHawkDialog();
|
||||||
if (result == DialogResult.OK)
|
if (result == DialogResult.OK)
|
||||||
|
|
|
@ -36,7 +36,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
|
||||||
|
|
||||||
length = info.Length;
|
length = info.Length;
|
||||||
|
|
||||||
return string.Format("{0,-8} {1}", info.Mnemonic, info.Args);
|
return string.Format("{0:X4} {1,-7} {2}", info.RawBytes.Substring(0, 4), info.Mnemonic, info.Args);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: refactor MC6800's disassembler to be a static call
|
// TODO: refactor MC6800's disassembler to be a static call
|
||||||
|
|
|
@ -66,7 +66,9 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
|
||||||
{
|
{
|
||||||
if (r.Key.StartsWith("M68K")) // drop Z80 regs until it has its own debugger/tracer
|
if (r.Key.StartsWith("M68K")) // drop Z80 regs until it has its own debugger/tracer
|
||||||
{
|
{
|
||||||
if (r.Key != "M68K SP" && r.Key != "M68K ISP") // copies of a7
|
if (r.Key != "M68K SP" && r.Key != "M68K ISP" && // copies of a7
|
||||||
|
r.Key != "M68K PC" && // already present in every line start
|
||||||
|
r.Key != "M68K IR") // copy of last opcode, already shown in raw bytes
|
||||||
{
|
{
|
||||||
sb.Append(
|
sb.Append(
|
||||||
string.Format("{0}:{1} ",
|
string.Format("{0}:{1} ",
|
||||||
|
|
Loading…
Reference in New Issue