Use emugtk_UpdateDisplay() to replace individual calls to these functions:
regwin_Show();
memwin_DumpD();
pgmwin_Disasm();
extern struct app_config_t *cfg;
extern struct options_t options;
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()
/* Step out of running state */
static void
emugtk_stop_running()
log_info("StopRunning()");
g_source_remove(running_function_tag);
running = 0;
log_info("StopRunning()");
g_source_remove(running_function_tag);
running = 0;
- regwin_Show();
- pgmwin_Disasm();
- memwin_DumpD();
+ emugtk_UpdateDisplay();
emugtk_Reset(void)
{
cpu8051_Reset();
emugtk_Reset(void)
{
cpu8051_Reset();
- regwin_Show();
- pgmwin_Disasm();
- memwin_DumpD();
+ emugtk_UpdateDisplay();
}
/* Signal ResetEvent (ResetButton) */
}
/* Signal ResetEvent (ResetButton) */
emugtk_Step(void)
{
cpu8051_Exec();
emugtk_Step(void)
{
cpu8051_Exec();
- regwin_Show();
- pgmwin_Disasm();
- memwin_DumpD();
+ emugtk_UpdateDisplay();
}
/* Signal RunEvent (RunButton) */
}
/* Signal RunEvent (RunButton) */
gtk_widget_show_all(mainwin);
}
gtk_widget_show_all(mainwin);
}
-static void
-emugtk_UpdateDisplay(void)
-{
- log_debug("UpdateDisplay()");
- regwin_Show();
- pgmwin_Disasm();
- memwin_DumpD();
-}
-
void
AddMenuSeparator(GtkWidget *menu)
{
void
AddMenuSeparator(GtkWidget *menu)
{
void
emugtk_new_file(char *file);
void
emugtk_new_file(char *file);
+void
+emugtk_UpdateDisplay(void);
+
#include "pgmwin.h"
#include "instructions_8051.h"
#include "hexfile.h"
#include "pgmwin.h"
#include "instructions_8051.h"
#include "hexfile.h"
static GtkWidget *reglist;
static GtkWidget *reglist;
* Make sure to update all windows.
* For example, R0-R7 values depends on internal memory values.
*/
* Make sure to update all windows.
* For example, R0-R7 values depends on internal memory values.
*/
- regwin_Show();
- memwin_DumpD();
- pgmwin_Disasm();
+ emugtk_UpdateDisplay();