* Copyright (C) 1999 Jonathan St-André
* Copyright (C) 1999 Hugo Villeneuve <hugo@hugovil.com>
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ * This file is released under the GPLv2
*/
#if HAVE_CONFIG_H
#include "cpu8051.h"
#include "regwin.h"
#include "memwin.h"
-#include "emugtk.h"
+#include "main.h"
#include "options.h"
#include "app-config.h"
GtkWidget *scrollwin;
GtkListStore *store;
+ log_debug("memwin_init");
+
COL_ASCII = cfg->bytes_per_row + 1;
N_COLUMNS = COL_ASCII + 1;
(crc_new == memwin_infos->crc[row])) {
row_changed = false;
} else {
- memwin_infos->crc_init = true;
memwin_infos->crc[row] = crc_new;
- log_debug(" Row %02d value(s) change", row);
+ log_debug(" Row %02d value(s) change", row);
row_changed = true;
}
unsigned int Address = 0;
GtkListStore *store;
+ log_debug("memwin_refresh");
+
memwin_infos_select(memory_id);
store = GTK_LIST_STORE(gtk_tree_view_get_model(
}
if (!valid) {
- printf("Invalid iter...\n");
+ log_err("Tree model: invalid iter");
return;
}
gtk_list_store_set(store, &iter, COL_ASCII, ascii_str, -1);
}
}
+
+ /* At this point we know all rows crc have been initialized. */
+ memwin_infos->crc_init = true;
}