Debugger - clean up some code
This commit is contained in:
parent
8427a9db7e
commit
133723e50f
|
@ -39,7 +39,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
DisassemblerView.BlazingFast = true;
|
||||
DisassemblerView.ItemCount = 0;
|
||||
currentDisassemblerAddress = PC;
|
||||
currentDisassemblerAddress = (uint)PCRegister.Value;
|
||||
Disassemble();
|
||||
DisassemblerView.Refresh();
|
||||
DisassemblerView.BlazingFast = false;
|
||||
|
@ -88,7 +88,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
if (DisassemblyLines.Any() && index < DisassemblyLines.Count)
|
||||
{
|
||||
if (DisassemblyLines[index].Address == PC)
|
||||
if (DisassemblyLines[index].Address == (uint)PCRegister.Value)
|
||||
{
|
||||
color = Color.LightCyan;
|
||||
}
|
||||
|
|
|
@ -26,13 +26,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
get { return Debuggable.GetCpuFlagsAndRegisters()[Disassembler.PCRegisterName]; }
|
||||
}
|
||||
|
||||
// TODO: get rid of me
|
||||
private uint PC
|
||||
{
|
||||
// TODO: is this okay for N64?
|
||||
get { return (uint)Debuggable.GetCpuFlagsAndRegisters()[Disassembler.PCRegisterName].Value; }
|
||||
}
|
||||
|
||||
#region Implementation checking
|
||||
|
||||
private bool CanUseMemoryCallbacks
|
||||
|
@ -67,7 +60,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
try
|
||||
{
|
||||
var pc = PC;
|
||||
var pc = (uint)PCRegister.Value;
|
||||
return true;
|
||||
}
|
||||
catch (NotImplementedException)
|
||||
|
|
Loading…
Reference in New Issue