Only assemble when the core is paused

This commit is contained in:
Kingcom committed 2013-07-28 23:01:43 +02:00
1 parent 549a9afb70
commit 4f313f3757
1 file changed
+6
+6
View File
@@ -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;