diff --git a/src/iaitorcore.h b/src/iaitorcore.h
index 959a72a5..8c690e51 100644
--- a/src/iaitorcore.h
+++ b/src/iaitorcore.h
@@ -198,6 +198,7 @@ public:
QString itoa(ut64 num, int rdx = 16);
QString config(const QString &k, const QString &v = NULL);
int config(const QString &k, int v);
+ int getConfig(const QString &k);
QString assemble(const QString &code);
QString disassemble(const QString &hex);
QString disassembleSingleInstruction(RVA addr);
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 82cfde55..e0fc73f3 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1078,3 +1078,17 @@ void MainWindow::on_actionRefresh_contents_triggered()
{
this->refreshVisibleDockWidgets();
}
+
+void MainWindow::on_actionDisplay_Esil_triggered()
+{
+ int esil = this->core->getConfig("asm.esil");
+ this->core->config("asm.esil", !esil);
+ this->refreshVisibleDockWidgets();
+}
+
+void MainWindow::on_actionDisplay_Pseudocode_triggered()
+{
+ int pseudo = this->core->getConfig("asm.pseudo");
+ this->core->config("asm.pseudo", !pseudo);
+ this->refreshVisibleDockWidgets();
+}
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 21bac239..100be9e8 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -174,6 +174,10 @@ private slots:
void on_actionRefresh_contents_triggered();
+ void on_actionDisplay_Esil_triggered();
+
+ void on_actionDisplay_Pseudocode_triggered();
+
private:
QDockWidget *asmDock;
QDockWidget *calcDock;
diff --git a/src/mainwindow.ui b/src/mainwindow.ui
index 660e52b7..01890e85 100644
--- a/src/mainwindow.ui
+++ b/src/mainwindow.ui
@@ -214,6 +214,9 @@ border-top: 0px;
+
+
+