Remove address parameter when dumping memwin
authorHugo Villeneuve <hugo@hugovil.com>
Thu, 17 Oct 2013 02:21:46 +0000 (22:21 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Wed, 6 Nov 2013 02:50:16 +0000 (21:50 -0500)
src/emugtk.c
src/memwin.c
src/memwin.h
src/regwin.c

index f3e6e37..de5d48b 100644 (file)
@@ -65,7 +65,7 @@ emugtk_stop_running()
                running = 0;
                regwin_Show();
                pgmwin_Disasm();
-               memwin_DumpD("00");
+               memwin_DumpD();
        }
 }
 
@@ -118,7 +118,7 @@ emugtk_Reset(void)
        cpu8051_Reset();
        regwin_Show();
        pgmwin_Disasm();
-       memwin_DumpD("00");
+       memwin_DumpD();
 }
 
 /* Signal ResetEvent (ResetButton) */
@@ -137,7 +137,7 @@ emugtk_Step(void)
        cpu8051_Exec();
        regwin_Show();
        pgmwin_Disasm();
-       memwin_DumpD("00");
+       memwin_DumpD();
 }
 
 /* Signal RunEvent (RunButton) */
@@ -389,7 +389,7 @@ emugtk_UpdateDisplay(void)
        log_debug("UpdateDisplay()");
        regwin_Show();
        pgmwin_Disasm();
-       memwin_DumpD("00");
+       memwin_DumpD();
 }
 
 void
index 3bd54f8..8635248 100644 (file)
@@ -217,22 +217,15 @@ memwin_init(void)
 
 /* Dump up to 256 bytes from Address in Memory (direct addressing) */
 void
-memwin_DumpD(char *MemAddress)
+memwin_DumpD(void)
 {
        int row;
        unsigned int Address;
        GtkListStore *store;
 
-       log_info("memwin_DumpD, address = %s", MemAddress);
+       log_info("memwin_DumpD()");
 
-       if (strlen(MemAddress) != 0) {
-               if (STREQ(MemAddress, "PC"))
-                       Address = cpu8051.pc;
-               else
-                       Address = Ascii2Hex(MemAddress, strlen(MemAddress));
-       } else {
-               Address = 0;
-       }
+       Address = 0;
 
        store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(memlist)));
 
index cd4700b..30fa9ce 100644 (file)
@@ -28,6 +28,6 @@ GtkWidget *
 memwin_init(void);
 
 void
-memwin_DumpD(char *Address);
+memwin_DumpD(void);
 
 #endif /* MEMWIN_H */
index 0578781..3a9bf82 100644 (file)
@@ -389,7 +389,7 @@ regwin_cell_edited(GtkCellRendererText *cell, gchar *path_string,
         * For example, R0-R7 values depends on internal memory values.
         */
        regwin_Show();
-       memwin_DumpD("0");
+       memwin_DumpD();
 };
 
 static void