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 */
#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)
* Make sure to update all registers and memory.
* For example, BANKed registers depends on internal memory.
*/
- regwin_Show();
+ emugtk_UpdateDisplay();
};
static void
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;
GtkWidget *memlist;
int data_rows;
- log_info("memwin_DumpD()");
-
Address = 0;
if (memory_id == INT_MEM_ID) {
memwin_init(char *title, int memory_id);
void
-memwin_DumpD(int memory_id);
+memwin_refresh(int memory_id);
#endif /* MEMWIN_H */
log_debug(" row address is: $%04X", val);
ToggleBreakpoint(val);
- pgmwin_Disasm();
+ pgmwin_refresh();
g_free(str_addr);
} else {
/* Show disassembled program. */
void
-pgmwin_Disasm(void)
+pgmwin_refresh(void)
{
int row;
GtkListStore *store;
int valid;
GtkTreeIter iter;
char str[128];
- int k;
- int col_id;
+ int k; int col_id;
int InstSize;
unsigned char OpCode;
pgmwin_init(void);
void
-pgmwin_Disasm(void);
+pgmwin_refresh(void);
int
pgmwin_IsBreakpoint(unsigned int address);
/* Show registers. */
void
-regwin_Show(void)
+regwin_refresh(void)
{
int row;
GtkListStore *store;
regwin_init(void);
void
-regwin_Show(void);
+regwin_refresh(void);
#endif /* REGWIN_H */