From 784ff59108b887e246b0f33ff696dfd981659ab2 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Thu, 24 Sep 2020 08:21:08 -0400 Subject: - Fixed some more bugs with struct, and union handling. --- sux.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'sux.c') diff --git a/sux.c b/sux.c index 2be2875..f1b07df 100644 --- a/sux.c +++ b/sux.c @@ -213,20 +213,7 @@ void *run(void *args) { #if keypoll pthread_mutex_lock(&mutex); #endif - for (uint8_t i = (24*thread)+2; i <= 24*(thread+1); i++) { - wmove(scr, i, 0); - waddch(scr, (i == lines) ? '>' : ' '); - } - wmove(scr, lines, 1); - wclrtoeol(scr); - wprintw(scr, "pc: $%04"PRIX64 , cpu->pc); - wprintw(scr, ", a: $%016"PRIX64, cpu->a); - wprintw(scr, ", b: $%016"PRIX64, cpu->b); - wprintw(scr, ", x: $%016"PRIX64, cpu->x); - wprintw(scr, ", y: $%016"PRIX64, cpu->y); - wprintw(scr, ", sp: $%04X", cpu->sp); - wprintw(scr, ", ps: $%02X", cpu->ps.u8[thread]); - wprintw(scr, ", inst: "); + print_regs(cpu, lines, thread); #if keypoll pthread_mutex_unlock(&mutex); #endif -- cgit v1.2.3-13-gbd6f