SWCHB and SWBCNT UI items recently added to the debugger now

actually change values in the emulation core when clicked.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2328 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2012-01-02 21:34:32 +00:00
parent ed39b927c7
commit 8c0109f3a1
2 changed files with 11 additions and 0 deletions

View File

@ -128,6 +128,9 @@ uInt8 RiotDebug::swcha(int newVal)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
uInt8 RiotDebug::swchb(int newVal)
{
if(newVal > -1)
mySystem.poke(0x282, newVal);
return mySystem.peek(0x282);
}

View File

@ -334,6 +334,14 @@ void RiotWidget::handleCommand(CommandSender* sender, int cmd, int data, int id)
value = Debugger::get_bits((BoolArray&)mySWACNTBits->getState());
riot.swacnt(value & 0xff);
break;
case kSWCHBBitsID:
value = Debugger::get_bits((BoolArray&)mySWCHBWriteBits->getState());
riot.swchb(value & 0xff);
break;
case kSWBCNTBitsID:
value = Debugger::get_bits((BoolArray&)mySWBCNTBits->getState());
riot.swbcnt(value & 0xff);
break;
}
break;