tracer: set some padding
This commit is contained in:
parent
8e92c5fd17
commit
888d7fed6a
|
@ -53,10 +53,10 @@ namespace BizHawk.Emulation.Cores.Components.M6502
|
|||
return new TraceInfo
|
||||
{
|
||||
Disassembly = string.Format(
|
||||
"{0:X4} {1:X2} {2} ",
|
||||
"{0:X4}: {1:X2} {2} ",
|
||||
PC,
|
||||
PeekMemory(PC),
|
||||
disassemble ? Disassemble(PC, out notused) : "---"),
|
||||
disassemble ? Disassemble(PC, out notused) : "---").PadRight(26),
|
||||
RegisterInfo = string.Format(
|
||||
"A:{0:X2} X:{1:X2} Y:{2:X2} P:{3:X2} SP:{4:X2} Cy:{5} {6}{7}{8}{9}{10}{11}{12}{13}",
|
||||
A,
|
||||
|
@ -65,15 +65,15 @@ namespace BizHawk.Emulation.Cores.Components.M6502
|
|||
P,
|
||||
S,
|
||||
TotalExecutedCycles,
|
||||
FlagN ? "N" : "",
|
||||
FlagV ? "V" : "",
|
||||
FlagT ? "T" : "",
|
||||
FlagB ? "B" : "",
|
||||
FlagD ? "D" : "",
|
||||
FlagI ? "I" : "",
|
||||
FlagZ ? "Z" : "",
|
||||
FlagC ? "C" : "",
|
||||
!RDY ? "R" : "")
|
||||
FlagN ? "N" : "n",
|
||||
FlagV ? "V" : "v",
|
||||
FlagT ? "T" : "t",
|
||||
FlagB ? "B" : "b",
|
||||
FlagD ? "D" : "d",
|
||||
FlagI ? "I" : "i",
|
||||
FlagZ ? "Z" : "z",
|
||||
FlagC ? "C" : "c",
|
||||
!RDY ? "R" : "r")
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA
|
|||
{
|
||||
return new TraceInfo
|
||||
{
|
||||
Disassembly = string.Format("{0:X8} {1}", opcode, Darm.DisassembleStuff(addr, opcode)),
|
||||
Disassembly = string.Format("{0:X8} {1}", opcode, Darm.DisassembleStuff(addr, opcode)).PadRight(26),
|
||||
RegisterInfo = regs.TraceString()
|
||||
};
|
||||
}
|
||||
|
|
|
@ -31,9 +31,9 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.QuickNES
|
|||
|
||||
Tracer.Put(new TraceInfo
|
||||
{
|
||||
Disassembly = string.Format("{0:X4} {1}", pc, opcodeStr).PadRight(26),
|
||||
Disassembly = string.Format("{0:X4}: {1}", pc, opcodeStr).PadRight(26),
|
||||
RegisterInfo = string.Format(
|
||||
"SP:{0:X2} A:{1:X2} P:{2:X2} X:{3:X2} Y:{4:X2}",
|
||||
"A:{1:X2} X:{3:X2} Y:{4:X2} P:{2:X2} SP:{0:X2}",
|
||||
sp,
|
||||
a,
|
||||
p,
|
||||
|
|
Loading…
Reference in New Issue