diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2020-06-01 15:15:17 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2020-06-01 15:15:17 -0400 |
commit | df81112b8369eeca5788a6f28c6b6b85ca911a95 (patch) | |
tree | fed73a1fb94485d4bc9dd25966d626c9338ccb05 /sux.c | |
parent | f600bf84c453649f625b06ba232a7464e7093b32 (diff) |
Did some more refactoring to the assembler.
- Refactored the symbol, and fixup table to now use a
linked list
- Added support for local symbols to the assembler.
- Rewrote SuBEditor, and SuBAsm to use local symbols.
Diffstat (limited to 'sux.c')
-rw-r--r-- | sux.c | 25 |
1 files changed, 8 insertions, 17 deletions
@@ -103,23 +103,14 @@ void *run(void *args) { } wmove(scr, lines, 1); wclrtoeol(scr); - wprintw(scr, - "pc: $%04"PRIX64 - ", a: $%016"PRIX64 - ", b: $%016"PRIX64 - ", x: $%016"PRIX64 - ", y: $%016"PRIX64 - , cpu->pc[thread] - , cpu->a[thread] - , cpu->b[thread] - , cpu->x[thread] - , cpu->y[thread]); - wprintw(scr, - ", sp: $%04X" - ", ps: $%02X" - ", inst: " - , cpu->sp[thread] - , cpu->ps.u8[thread]); + wprintw(scr, "pc: $%04"PRIX64 , cpu->pc[thread]); + wprintw(scr, ", a: $%016"PRIX64, cpu->a[thread]); + wprintw(scr, ", b: $%016"PRIX64, cpu->b[thread]); + wprintw(scr, ", x: $%016"PRIX64, cpu->x[thread]); + wprintw(scr, ", y: $%016"PRIX64, cpu->y[thread]); + wprintw(scr, ", sp: $%04X", cpu->sp[thread]); + wprintw(scr, ", ps: $%02X", cpu->ps.u8[thread]); + wprintw(scr, ", inst: "); #if keypoll pthread_mutex_unlock(&mutex); #endif |