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; }