From 3097e34b570734cb9542c00c4a4395b54eaa0d58 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sat, 13 Jun 2020 13:37:03 -0400 Subject: Make the registers single 64 bit uints, and convert all the value getting, and setting into macros. This is to make the codebase cleaner. --- lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexer.c') diff --git a/lexer.c b/lexer.c index df478b0..78d6044 100644 --- a/lexer.c +++ b/lexer.c @@ -232,6 +232,7 @@ uint64_t lex(char *str, uint64_t address, uint8_t dbg) { last_line = l; } + l->addr = address; while (isdelm(str[i], dbg) != 1) { base = 0; space = 0; @@ -606,6 +607,5 @@ uint64_t lex(char *str, uint64_t address, uint8_t dbg) { linenum += 10; } } - l->addr = address; return address; } -- cgit v1.2.3-13-gbd6f