extern struct app_config_t *cfg;
extern struct options_t options;
+void
+emugtk_UpdateDisplay(void)
+{
+ log_debug("UpdateDisplay()");
+ regwin_Show();
+ pgmwin_Disasm();
+ memwin_DumpD(INT_MEM_ID);
+}
+
/* Step out of running state */
static void
emugtk_stop_running()
log_info("StopRunning()");
g_source_remove(running_function_tag);
running = 0;
- regwin_Show();
- pgmwin_Disasm();
- memwin_DumpD();
+ emugtk_UpdateDisplay();
}
}
emugtk_Reset(void)
{
cpu8051_Reset();
- regwin_Show();
- pgmwin_Disasm();
- memwin_DumpD();
+ emugtk_UpdateDisplay();
}
/* Signal ResetEvent (ResetButton) */
emugtk_Step(void)
{
cpu8051_Exec();
- regwin_Show();
- pgmwin_Disasm();
- memwin_DumpD();
+ emugtk_UpdateDisplay();
}
/* Signal RunEvent (RunButton) */
gtk_widget_show_all(mainwin);
}
-static void
-emugtk_UpdateDisplay(void)
-{
- log_debug("UpdateDisplay()");
- regwin_Show();
- pgmwin_Disasm();
- memwin_DumpD();
-}
-
void
AddMenuSeparator(GtkWidget *menu)
{
#include "pgmwin.h"
#include "instructions_8051.h"
#include "hexfile.h"
+#include "emugtk.h"
static GtkWidget *reglist;
* Make sure to update all windows.
* For example, R0-R7 values depends on internal memory values.
*/
- regwin_Show();
- memwin_DumpD();
- pgmwin_Disasm();
+ emugtk_UpdateDisplay();
};
static void