Add Cycles display to the debugger state. For now this is just the

number of cycles since the ROM was loaded.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@491 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
urchlay 2005-06-13 19:04:54 +00:00
parent 59f61c7926
commit c866f7962e
1 changed files with 4 additions and 1 deletions

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//
// $Id: Debugger.cxx,v 1.2 2005-06-13 02:47:44 urchlay Exp $
// $Id: Debugger.cxx,v 1.3 2005-06-13 19:04:54 urchlay Exp $
//============================================================================
#include "bspf.hxx"
@ -111,6 +111,9 @@ const string Debugger::state()
result += "/";
formatFlags(myDebugger->ps(), buf);
result += buf;
result += " Cycle ";
sprintf(buf, "%d", mySystem->cycles());
result += buf;
result += "\n ";
myDebugger->disassemble(myDebugger->pc(), buf);
result += buf;