summaryrefslogtreecommitdiff
path: root/sux.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-09-24 08:21:08 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-09-24 08:21:08 -0400
commit784ff59108b887e246b0f33ff696dfd981659ab2 (patch)
tree02d00ff774bd35a31f04afb62a7f187ca0a097f9 /sux.c
parent9932fac52c0cac2e9e0e11c84dfdf99e0a87ebfb (diff)
- Fixed some more bugs with struct, and union handling.
Diffstat (limited to 'sux.c')
-rw-r--r--sux.c15
1 files changed, 1 insertions, 14 deletions
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