summaryrefslogtreecommitdiff
path: root/sux.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-05-28 20:03:09 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-05-28 20:03:09 -0400
commit7ba25336342282bfe57dbb6ddf8f3e2ae3e1b719 (patch)
tree1e9a5921d19056be61b9f613f254556edf5242a7 /sux.c
parent691ae45b3916379b0b1d845a5581d9068426b134 (diff)
Refactored the assembler, yet again, and implemented
support for comma separated values. The assembler now uses a linked list of tokenized lines, each containing a linked list of tokens for that line. I also moved all of the large tables into the higher parts of memory, in order to free up the lower part of memory for the user. Comma sepparated values only work with directives, and only with the byte", word, dword, and qword directives. I also added support for getting the upper, and lower halves of an address. The tokens for both of those are '<', and '>' respectively.
Diffstat (limited to 'sux.c')
-rw-r--r--sux.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sux.c b/sux.c
index b8c4ca7..75577d2 100644
--- a/sux.c
+++ b/sux.c
@@ -97,7 +97,11 @@ void *run(void *args) {
#if keypoll
pthread_mutex_lock(&mutex);
#endif
- wmove(scr, lines, 0);
+ 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