diff options
Diffstat (limited to 'sux.c')
-rw-r--r-- | sux.c | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -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 |