Harmonize windows refresh function names
authorHugo Villeneuve <hugo@hugovil.com>
Mon, 21 Oct 2013 01:46:07 +0000 (21:46 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Wed, 6 Nov 2013 02:50:17 +0000 (21:50 -0500)
src/emugtk.c
src/memwin.c
src/memwin.h
src/pgmwin.c
src/pgmwin.h
src/regwin.c
src/regwin.h

index f4f9301..3ca0c04 100644 (file)
@@ -60,10 +60,10 @@ void
 emugtk_UpdateDisplay(void)
 {
        log_debug("UpdateDisplay()");
-       regwin_Show();
-       pgmwin_Disasm();
-       memwin_DumpD(INT_MEM_ID);
-       memwin_DumpD(EXT_MEM_ID);
+       regwin_refresh();
+       pgmwin_refresh();
+       memwin_refresh(INT_MEM_ID);
+       memwin_refresh(EXT_MEM_ID);
 }
 
 /* Step out of running state */
index 17b9413..ffe5e56 100644 (file)
@@ -32,6 +32,7 @@
 #include "cpu8051.h"
 #include "regwin.h"
 #include "memwin.h"
+#include "emugtk.h"
 
 #define DATA_COLS 16 /* Must be a power of 2 */
 #define DATA_ROWS_INT (INT_MEM_SIZE / DATA_COLS)
@@ -132,7 +133,7 @@ memwin_cell_edited(GtkCellRendererText *cell, gchar *path_string,
         * Make sure to update all registers and memory.
         * For example, BANKed registers depends on internal memory.
         */
-       regwin_Show();
+       emugtk_UpdateDisplay();
 };
 
 static void
@@ -247,9 +248,9 @@ memwin_init(char *title, int memory_id)
        return frame;
 }
 
-/* Dump up to 256 bytes from Address in Memory (direct addressing) */
+/* Dump internal or external memory. */
 void
-memwin_DumpD(int memory_id)
+memwin_refresh(int memory_id)
 {
        int row;
        unsigned int Address;
@@ -257,8 +258,6 @@ memwin_DumpD(int memory_id)
        GtkWidget *memlist;
        int data_rows;
 
-       log_info("memwin_DumpD()");
-
        Address = 0;
 
        if (memory_id == INT_MEM_ID) {
index 3d0704f..ccb528d 100644 (file)
@@ -28,6 +28,6 @@ GtkWidget *
 memwin_init(char *title, int memory_id);
 
 void
-memwin_DumpD(int memory_id);
+memwin_refresh(int memory_id);
 
 #endif /* MEMWIN_H */
index 04cff15..69410bc 100644 (file)
@@ -144,7 +144,7 @@ pgmwin_sel_changed_event(GtkWidget *widget, GdkEvent *event, gpointer data)
                log_debug("  row address is: $%04X", val);
 
                ToggleBreakpoint(val);
-               pgmwin_Disasm();
+               pgmwin_refresh();
 
                g_free(str_addr);
        } else {
@@ -205,7 +205,7 @@ pgmwin_init(void)
 
 /* Show disassembled program. */
 void
-pgmwin_Disasm(void)
+pgmwin_refresh(void)
 {
        int row;
        GtkListStore *store;
@@ -219,8 +219,7 @@ pgmwin_Disasm(void)
                int valid;
                GtkTreeIter iter;
                char str[128];
-               int k;
-               int col_id;
+               int k;          int col_id;
                int InstSize;
                unsigned char OpCode;
 
index 0276e7f..952d931 100644 (file)
@@ -28,7 +28,7 @@ GtkWidget *
 pgmwin_init(void);
 
 void
-pgmwin_Disasm(void);
+pgmwin_refresh(void);
 
 int
 pgmwin_IsBreakpoint(unsigned int address);
index aaa006b..f94b8f9 100644 (file)
@@ -466,7 +466,7 @@ regwin_init(void)
 
 /* Show registers. */
 void
-regwin_Show(void)
+regwin_refresh(void)
 {
        int row;
        GtkListStore *store;
index 45e71e2..a526f6f 100644 (file)
@@ -28,6 +28,6 @@ GtkWidget *
 regwin_init(void);
 
 void
-regwin_Show(void);
+regwin_refresh(void);
 
 #endif /* REGWIN_H */