debugger: return address in hex when copying.

quicknes: uppercase numbers, since its mnemonics are uppercase too.
This commit is contained in:
feos 2016-02-21 18:44:50 +03:00
parent b8619bea4e
commit dfb0cf37d8
2 changed files with 5 additions and 4 deletions

View File

@ -76,7 +76,7 @@ namespace BizHawk.Client.EmuHawk
if (column == 0)
{
// feos: address size must be platform dependant
text = string.Format("{0:X4}", DisassemblyLines[index].Address);
text = string.Format("{0:X}", DisassemblyLines[index].Address);
}
else if (column == 1)
{
@ -184,7 +184,8 @@ namespace BizHawk.Client.EmuHawk
foreach (int index in indices)
{
if (blob.Length != 0) blob.AppendLine();
blob.Append(DisassemblyLines[index].Address)
blob.Append(string.Format("{0:X}", DisassemblyLines[index].Address))
.Append(" ")
.Append(DisassemblyLines[index].Mnemonic);
}

View File

@ -28,7 +28,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.QuickNES
string opcodeStr = MOS6502X.Disassemble(pc, out notused, (address) => _memoryDomains.SystemBus.PeekByte(address));
Tracer.Put(string.Format(
"{0:x4}:{1} SP:{2:x2} A:{3:x2} P:{4:x2} X:{5:x2} Y:{6:x2} ",
"{0:X4}: {1} SP:{2:X2} A:{3:X2} P:{4:X2} X:{5:X2} Y:{6:X2} ",
pc,
opcodeStr.PadRight(26),
sp,
@ -39,7 +39,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.QuickNES
}
private const string TraceHeader = "PC:OP SP_A_P_X_Y ";
private const string TraceHeader = "PC: OP SP_A_P_X_Y ";
private void ConnectTracer()
{