diff --git a/Windows/Debugger/CtrlDisAsmView.cpp b/Windows/Debugger/CtrlDisAsmView.cpp index 4a87d5bf06..b4b46c5dba 100644 --- a/Windows/Debugger/CtrlDisAsmView.cpp +++ b/Windows/Debugger/CtrlDisAsmView.cpp @@ -290,6 +290,12 @@ void CtrlDisAsmView::assembleOpcode(u32 address, std::string defaultText) char op[256]; u32 encoded; + if (Core_IsStepping() == false) + { + MessageBox(wnd,"Cannot change code while the core is running!","Error",MB_OK); + return; + } + bool result = InputBox_GetString(MainWindow::GetHInstance(),wnd,"Assemble opcode",(char*)defaultText.c_str(),op); if (result == false) return;