Somehow I forgot to commit this before: added toggleB() and toggleI()

flag methods to Debugger.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@556 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
urchlay 2005-06-24 13:51:57 +00:00
parent cfac69f4e5
commit d7fa47f917
2 changed files with 19 additions and 5 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.32 2005-06-23 18:11:58 stephena Exp $
// $Id: Debugger.cxx,v 1.33 2005-06-24 13:51:55 urchlay Exp $
//============================================================================
#include "bspf.hxx"
@ -442,11 +442,21 @@ void Debugger::toggleZ() {
myDebugger->ps( myDebugger->ps() ^ 0x02 );
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void Debugger::toggleI() {
myDebugger->ps( myDebugger->ps() ^ 0x04 );
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void Debugger::toggleD() {
myDebugger->ps( myDebugger->ps() ^ 0x08 );
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void Debugger::toggleB() {
myDebugger->ps( myDebugger->ps() ^ 0x10 );
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void Debugger::toggleV() {
myDebugger->ps( myDebugger->ps() ^ 0x40 );

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.hxx,v 1.29 2005-06-23 18:11:58 stephena Exp $
// $Id: Debugger.hxx,v 1.30 2005-06-24 13:51:57 urchlay Exp $
//============================================================================
#ifndef DEBUGGER_HXX
@ -51,7 +51,7 @@ enum {
for all debugging operations in Stella (parser, 6502 debugger, etc).
@author Stephen Anthony
@version $Id: Debugger.hxx,v 1.29 2005-06-23 18:11:58 stephena Exp $
@version $Id: Debugger.hxx,v 1.30 2005-06-24 13:51:57 urchlay Exp $
*/
class Debugger : public DialogContainer
{
@ -189,11 +189,15 @@ class Debugger : public DialogContainer
int cycles();
int peek(int addr);
int dpeek(int addr);
void toggleC();
void toggleZ();
// CPU flags: NV-BDIZC
void toggleN();
void toggleV();
void toggleB();
void toggleD();
void toggleI();
void toggleZ();
void toggleC();
void reset();
void autoLoadSymbols(string file);
void nextFrame(int frames);