summaryrefslogtreecommitdiff
path: root/lexer.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-06-13 13:37:03 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-06-13 13:37:03 -0400
commit3097e34b570734cb9542c00c4a4395b54eaa0d58 (patch)
tree2b7a3b418095f7375881101236530f6400e36bfd /lexer.c
parent9ed46f16faad3300876c3ab40aab1660ef8c4a08 (diff)
Make the registers single 64 bit uints, and convert
all the value getting, and setting into macros. This is to make the codebase cleaner.
Diffstat (limited to 'lexer.c')
-rw-r--r--lexer.c2
1 files changed, 1 insertions, 1 deletions
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;
}