diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2020-09-24 08:21:08 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2020-09-24 08:21:08 -0400 |
commit | 784ff59108b887e246b0f33ff696dfd981659ab2 (patch) | |
tree | 02d00ff774bd35a31f04afb62a7f187ca0a097f9 /sux.c | |
parent | 9932fac52c0cac2e9e0e11c84dfdf99e0a87ebfb (diff) |
- Fixed some more bugs with struct, and union handling.
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 |