Debugger: Fixed crash when disassembling while CPU is waiting on an interrupt

This commit is contained in:
Sour 2019-04-04 23:50:39 -04:00
parent 1fdfe1dcf7
commit 02fa095a91
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ private:
bool _immediateMode = false;
CpuState _state;
uint32_t _operand;
uint32_t _operand = -1;
uint32_t GetProgramAddress(uint16_t addr);
uint32_t GetDataAddress(uint16_t addr);

View file

@ -13,7 +13,7 @@
void DummyCpu::SetDummyState(CpuState &state)
{
_state = state;
_state.StopState = CpuStopState::Running;
_writeCounter = 0;
_readCounter = 0;
}