Show the current tick count in the disasm dialog.

Might as well show something under Ctr:...
This commit is contained in:
Unknown W. Brackets 2013-01-21 19:20:49 -08:00
parent d99d060c2e
commit 04130c812a

View File

@ -15,6 +15,7 @@
#include "../../Core/Core.h" #include "../../Core/Core.h"
#include "../../Core/CPU.h" #include "../../Core/CPU.h"
#include "../../Core/HLE/HLE.h" #include "../../Core/HLE/HLE.h"
#include "../../Core/CoreTiming.h"
#include "base/stringutil.h" #include "base/stringutil.h"
@ -183,7 +184,7 @@ BOOL CDisasm::DlgProc(UINT message, WPARAM wParam, LPARAM lParam)
Sleep(1); Sleep(1);
_dbg_update_(); _dbg_update_();
ptr->gotoPC(); ptr->gotoPC();
reglist->redraw(); UpdateDialog();
vfpudlg->Update(); vfpudlg->Update();
} }
break; break;
@ -197,7 +198,7 @@ BOOL CDisasm::DlgProc(UINT message, WPARAM wParam, LPARAM lParam)
MainWindow::UpdateMenus(); MainWindow::UpdateMenus();
Sleep(1); Sleep(1);
ptr->gotoPC(); ptr->gotoPC();
reglist->redraw(); UpdateDialog();
} }
break; break;
@ -217,10 +218,9 @@ BOOL CDisasm::DlgProc(UINT message, WPARAM wParam, LPARAM lParam)
Core_EnableStepping(true); Core_EnableStepping(true);
_dbg_update_(); _dbg_update_();
MainWindow::UpdateMenus(); MainWindow::UpdateMenus();
UpdateDialog();
Sleep(1); //let cpu catch up Sleep(1); //let cpu catch up
ptr->gotoPC(); ptr->gotoPC();
reglist->redraw(); UpdateDialog();
vfpudlg->Update(); vfpudlg->Update();
} }
break; break;
@ -359,6 +359,7 @@ void CDisasm::SetDebugMode(bool _bDebug)
ptr->gotoPC(); ptr->gotoPC();
// update the callstack // update the callstack
//CDisam::blah blah //CDisam::blah blah
UpdateDialog();
} }
else else
{ {
@ -368,9 +369,9 @@ void CDisasm::SetDebugMode(bool _bDebug)
EnableWindow( GetDlgItem(hDlg, IDC_STEPHLE), FALSE); EnableWindow( GetDlgItem(hDlg, IDC_STEPHLE), FALSE);
EnableWindow( GetDlgItem(hDlg, IDC_STOP), TRUE); EnableWindow( GetDlgItem(hDlg, IDC_STOP), TRUE);
EnableWindow( GetDlgItem(hDlg, IDC_SKIP), FALSE); EnableWindow( GetDlgItem(hDlg, IDC_SKIP), FALSE);
}
CtrlRegisterList *reglist = CtrlRegisterList::getFrom(GetDlgItem(m_hDlg,IDC_REGLIST)); CtrlRegisterList *reglist = CtrlRegisterList::getFrom(GetDlgItem(m_hDlg,IDC_REGLIST));
reglist->redraw(); reglist->redraw();
}
} }
void CDisasm::NotifyMapLoaded() void CDisasm::NotifyMapLoaded()
@ -408,11 +409,10 @@ void CDisasm::UpdateDialog(bool _bComplete)
CtrlRegisterList *rl = CtrlRegisterList::getFrom(GetDlgItem(m_hDlg,IDC_REGLIST)); CtrlRegisterList *rl = CtrlRegisterList::getFrom(GetDlgItem(m_hDlg,IDC_REGLIST));
rl->redraw(); rl->redraw();
// Update Debug Counter // Update Debug Counter
/* char tempTicks[24];
char szBuffer[32]; sprintf(tempTicks, "%lld", CoreTiming::GetTicks());
sprintf(szBuffer, "%04X%08X", PowerPC::ppcState.TU,PowerPC::ppcState.TL); SetDlgItemText(m_hDlg, IDC_DEBUG_COUNT, tempTicks);
SetDlgItemText(m_hDlg, IDC_DEBUG_COUNT, szBuffer);
*/
// Update Register Dialog // Update Register Dialog
for (int i=0; i<numCPUs; i++) for (int i=0; i<numCPUs; i++)
if (memoryWindow[i]) if (memoryWindow[i])