From: Hugo Villeneuve Date: Wed, 16 Oct 2013 20:17:42 +0000 (-0400) Subject: Refresh register window after any memory modification X-Git-Tag: v2.0.0~132 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=1e334b447fea096671d90dd364cd830eae17514e;p=emu8051.git Refresh register window after any memory modification Banked registers R0 to R7 depend on internal memory content. --- diff --git a/src/memwin.c b/src/memwin.c index 7c1b9c0..f5945bf 100644 --- a/src/memwin.c +++ b/src/memwin.c @@ -30,6 +30,7 @@ #include "memory.h" #include "hexfile.h" #include "cpu8051.h" +#include "regwin.h" #include "memwin.h" static GtkWidget *memlist; @@ -122,6 +123,12 @@ memwin_cell_edited(GtkCellRendererText *cell, gchar *path_string, /* Store new value in gtk model. */ gtk_list_store_set(GTK_LIST_STORE(model), &iter, column, str, -1); + + /* + * Make sure to update all registers and memory. + * For example, BANKed registers depends on internal memory. + */ + regwin_Show(); }; static void