From 1e334b447fea096671d90dd364cd830eae17514e Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 16 Oct 2013 16:17:42 -0400 Subject: [PATCH] Refresh register window after any memory modification Banked registers R0 to R7 depend on internal memory content. --- src/memwin.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.20.1