]> Untitled Git - emu8051.git/commitdiff
Refresh register window after any memory modification
authorHugo Villeneuve <hugo@hugovil.com>
Wed, 16 Oct 2013 20:17:42 +0000 (16:17 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Wed, 6 Nov 2013 02:50:16 +0000 (21:50 -0500)
Banked registers R0 to R7 depend on internal memory content.

src/memwin.c

index 7c1b9c007f7e1a7fa8549bb59642700d66e1a38d..f5945bf0182167f868e4c6687d0e0682dce84a37 100644 (file)
@@ -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