make stepping work again, it's impossible to use it without these changes

This commit is contained in:
Peter Tissen 2014-02-14 00:08:32 +01:00
parent 2b63888782
commit 11ba83738f
2 changed files with 9 additions and 9 deletions

View File

@ -96,21 +96,21 @@ bool CPUThread::Sync()
int CPUThread::ThreadStatus()
{
if(Emu.IsStopped() || IsStopped() || IsPaused())
if(Emu.IsStopped() || IsStopped() )
{
return CPUThread_Stopped;
}
if(TestDestroy())
{
return CPUThread_Break;
}
if(m_is_step)
if (m_is_step)
{
return CPUThread_Step;
}
if (TestDestroy())
{
return CPUThread_Break;
}
if(Emu.IsPaused() || Sync())
{
return CPUThread_Sleeping;

View File

@ -451,12 +451,12 @@ void InterpreterDisAsmFrame::Show_Val(wxCommandEvent& WXUNUSED(event))
diag->SetSizerAndFit( s_panel );
if(CPU) p_pc->SetLabel(wxString::Format("%llx", CPU->PC));
if(CPU) p_pc->SetValue(wxString::Format("%llx", CPU->PC));
if(diag->ShowModal() == wxID_OK)
{
u64 pc = CPU ? CPU->PC : 0x0;
sscanf(p_pc->GetLabel(), "%llx", &pc);
sscanf(p_pc->GetValue(), "%llx", &pc);
remove_markedPC.AddCpy(Emu.GetMarkedPoints().AddCpy(pc));
ShowAddr(CentrePc(pc));
}