projects
/
emu8051.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add option to specify maximum memory sizes
[emu8051.git]
/
src
/
regwin.c
diff --git
a/src/regwin.c
b/src/regwin.c
index
4cba816
..
f94b8f9
100644
(file)
--- a/
src/regwin.c
+++ b/
src/regwin.c
@@
-33,6
+33,7
@@
#include "pgmwin.h"
#include "instructions_8051.h"
#include "hexfile.h"
#include "pgmwin.h"
#include "instructions_8051.h"
#include "hexfile.h"
+#include "emugtk.h"
static GtkWidget *reglist;
static GtkWidget *reglist;
@@
-282,22
+283,20
@@
static GtkListStore *
regwin_init_store(void)
{
GtkTreeIter iter;
regwin_init_store(void)
{
GtkTreeIter iter;
- int row
s
;
+ int row;
int col;
GtkListStore *store;
GType col_types[N_COLUMNS];
int col;
GtkListStore *store;
GType col_types[N_COLUMNS];
- for (col = 0; col < N_COLUMNS; col++) {
+ /* No need for static array, all our columns are of the same type. */
+ for (col = 0; col < N_COLUMNS; col++)
col_types[col] = G_TYPE_STRING;
col_types[col] = G_TYPE_STRING;
- }
store = gtk_list_store_newv(N_COLUMNS, col_types);
store = gtk_list_store_newv(N_COLUMNS, col_types);
- /* Initialize with rows of dummy data... */
- for (rows = 0; rows < DATA_ROWS; rows++) {
- /* Add new row. */
+ /* Add rows. */
+ for (row = 0; row < DATA_ROWS; row++)
gtk_list_store_append(store, &iter);
gtk_list_store_append(store, &iter);
- }
return store;
}
return store;
}
@@
-389,9
+388,7
@@
regwin_cell_edited(GtkCellRendererText *cell, gchar *path_string,
* Make sure to update all windows.
* For example, R0-R7 values depends on internal memory values.
*/
* Make sure to update all windows.
* For example, R0-R7 values depends on internal memory values.
*/
- regwin_Show();
- memwin_DumpD();
- pgmwin_Disasm();
+ emugtk_UpdateDisplay();
};
static void
};
static void
@@
-469,7
+466,7
@@
regwin_init(void)
/* Show registers. */
void
/* Show registers. */
void
-regwin_
Show
(void)
+regwin_
refresh
(void)
{
int row;
GtkListStore *store;
{
int row;
GtkListStore *store;