mirror of https://github.com/stella-emu/stella.git
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:
parent
59f61c7926
commit
c866f7962e
|
@ -13,7 +13,7 @@
|
||||||
// See the file "license" for information on usage and redistribution of
|
// See the file "license" for information on usage and redistribution of
|
||||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
// 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"
|
#include "bspf.hxx"
|
||||||
|
@ -111,6 +111,9 @@ const string Debugger::state()
|
||||||
result += "/";
|
result += "/";
|
||||||
formatFlags(myDebugger->ps(), buf);
|
formatFlags(myDebugger->ps(), buf);
|
||||||
result += buf;
|
result += buf;
|
||||||
|
result += " Cycle ";
|
||||||
|
sprintf(buf, "%d", mySystem->cycles());
|
||||||
|
result += buf;
|
||||||
result += "\n ";
|
result += "\n ";
|
||||||
myDebugger->disassemble(myDebugger->pc(), buf);
|
myDebugger->disassemble(myDebugger->pc(), buf);
|
||||||
result += buf;
|
result += buf;
|
||||||
|
|
Loading…
Reference in New Issue