use inline out insome places
This commit is contained in:
parent
941bdb7daa
commit
fdcbe6924b
|
@ -20,11 +20,9 @@ namespace BizHawk.Emulation.Cores.Components.CP1610
|
|||
|
||||
public TraceInfo CP1610State(bool disassemble = true)
|
||||
{
|
||||
int notused;
|
||||
|
||||
return new TraceInfo
|
||||
{
|
||||
Disassembly = $"{RegisterPC - 1:X4}: {opcode:X2} {(disassemble ? Disassemble((ushort)(RegisterPC - 1), out notused) : "---")} ".PadRight(26),
|
||||
Disassembly = $"{RegisterPC - 1:X4}: {opcode:X2} {(disassemble ? Disassemble((ushort)(RegisterPC - 1), out _) : "---")} ".PadRight(26),
|
||||
RegisterInfo = string.Join(" ",
|
||||
new[]
|
||||
{
|
||||
|
|
|
@ -372,11 +372,9 @@ namespace BizHawk.Emulation.Cores.Components.H6280
|
|||
|
||||
public TraceInfo State()
|
||||
{
|
||||
int notused;
|
||||
|
||||
return new TraceInfo
|
||||
{
|
||||
Disassembly = $"{MPR[PC >> 13]:X2}:{PC:X4}: {ReadMemory(PC):X2} {Disassemble(PC, out notused)} ".PadRight(30),
|
||||
Disassembly = $"{MPR[PC >> 13]:X2}:{PC:X4}: {ReadMemory(PC):X2} {Disassemble(PC, out _)} ".PadRight(30),
|
||||
RegisterInfo = string.Join(" ",
|
||||
$"A:{A:X2}",
|
||||
$"X:{X:X2}",
|
||||
|
|
|
@ -522,11 +522,9 @@ namespace BizHawk.Emulation.Cores.Components.I8048
|
|||
|
||||
public TraceInfo State(bool disassemble = true)
|
||||
{
|
||||
ushort notused;
|
||||
|
||||
return new TraceInfo
|
||||
{
|
||||
Disassembly = $"{(disassemble ? Disassemble(Regs[PC], ReadMemory, out notused) : "---")} ".PadRight(50),
|
||||
Disassembly = $"{(disassemble ? Disassemble(Regs[PC], ReadMemory, out _) : "---")} ".PadRight(50),
|
||||
RegisterInfo = string.Format(
|
||||
"A:{0:X2} R0:{1:X2} R1:{2:X2} R2:{3:X2} R3:{4:X2} R4:{5:X2} R5:{6:X2} R6:{7:X2} R7:{8:X2} PSW:{9:X4} Cy:{10} LY:{11} {12}{13}{14}{15}{16}{17}{18}{19}{20}{21}{22}",
|
||||
Regs[A],
|
||||
|
|
|
@ -637,11 +637,9 @@ namespace BizHawk.Emulation.Cores.Components.LR35902
|
|||
|
||||
public TraceInfo State(bool disassemble = true)
|
||||
{
|
||||
ushort notused;
|
||||
|
||||
return new TraceInfo
|
||||
{
|
||||
Disassembly = $"{(disassemble ? Disassemble(RegPC, ReadMemory, out notused) : "---")} ".PadRight(40),
|
||||
Disassembly = $"{(disassemble ? Disassemble(RegPC, ReadMemory, out _) : "---")} ".PadRight(40),
|
||||
RegisterInfo = string.Join(" ",
|
||||
$"A:{Regs[A]:X2}",
|
||||
$"F:{Regs[F]:X2}",
|
||||
|
|
|
@ -502,11 +502,9 @@ namespace BizHawk.Emulation.Cores.Components.MC6800
|
|||
|
||||
public TraceInfo State(bool disassemble = true)
|
||||
{
|
||||
ushort notused;
|
||||
|
||||
return new TraceInfo
|
||||
{
|
||||
Disassembly = $"{(disassemble ? Disassemble(Regs[PC], ReadMemory, out notused) : "---")} ".PadRight(50),
|
||||
Disassembly = $"{(disassemble ? Disassemble(Regs[PC], ReadMemory, out _) : "---")} ".PadRight(50),
|
||||
RegisterInfo = string.Format(
|
||||
"A:{0:X2} B:{1:X2} X:{2:X4} SP:{3:X4} CC:{4:X2} Cy:{5} {6}{7}{8}{9}{10}{11}",
|
||||
Regs[A],
|
||||
|
|
|
@ -640,11 +640,9 @@ namespace BizHawk.Emulation.Cores.Components.MC6809
|
|||
|
||||
public TraceInfo State(bool disassemble = true)
|
||||
{
|
||||
ushort notused;
|
||||
|
||||
return new TraceInfo
|
||||
{
|
||||
Disassembly = $"{(disassemble ? Disassemble(Regs[PC], ReadMemory, out notused) : "---")} ".PadRight(50),
|
||||
Disassembly = $"{(disassemble ? Disassemble(Regs[PC], ReadMemory, out _) : "---")} ".PadRight(50),
|
||||
RegisterInfo = string.Format(
|
||||
"A:{0:X2} B:{1:X2} X:{2:X4} Y:{3:X4} US:{4:X4} SP:{5:X4} DP:{6:X2} CC:{7:X2} Cy:{8} {9}{10}{11}{12}{13}{14}{15}{16}",
|
||||
Regs[A],
|
||||
|
|
Loading…
Reference in New Issue