From 651e875c9bf5a557b093f75c9f97c54656934d79 Mon Sep 17 00:00:00 2001 From: "(Tim) Efthimis Kritikos" Date: Mon, 29 Jan 2024 13:21:56 +0000 Subject: [PATCH] GUI: Slight improvement to general->memdump window --- gui.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gui.c b/gui.c index 5c56f11..d621fa0 100644 --- a/gui.c +++ b/gui.c @@ -288,14 +288,23 @@ int update_general_memdump(struct simdata_t *simdata){ uint32_t ADDRESS=(simdata->PC-n*usable_height/2)&0x00FFFFFF; for(int h=0;h=simdata->PC&&ADDRESS<=simdata->PC+4) + wattron(general_memdump,A_BOLD); + else + wattroff(general_memdump,A_BOLD); wprintw(general_memdump,"%02x ",simdata->RAM[ADDRESS]); ADDRESS=(ADDRESS+1)&0xFFFFFF; } ADDRESS=temp_address; for (int i=0;i=simdata->PC&&ADDRESS<=simdata->PC+4) + wattron(general_memdump,A_BOLD); + else + wattroff(general_memdump,A_BOLD); wprintw(general_memdump,"%c",(simdata->RAM[ADDRESS]>=0x20&&simdata->RAM[ADDRESS]<0x7F)?simdata->RAM[ADDRESS]:'.'); ADDRESS=(ADDRESS+1)&0xFFFFFF; }