summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-05-28 21:12:44 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-05-28 21:12:44 -0400
commit47cb4ad67be723a4df8e6ccd3cad6be79e3e7765 (patch)
tree41f591d1ca6360e034c6f914ad5b6dc46eea58a7
parent7ba25336342282bfe57dbb6ddf8f3e2ae3e1b719 (diff)
Fixed some stuff in the assembler.
-rw-r--r--assemble.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/assemble.c b/assemble.c
index 869e6b8..bfa516f 100644
--- a/assemble.c
+++ b/assemble.c
@@ -6,6 +6,8 @@ uint8_t isexpr(uint8_t type, uint8_t dbg) {
switch (type) {
case EXPR_PLUS:
case EXPR_MINUS:
+ case EXPR_LOW:
+ case EXPR_HIGH:
return 1;
default:
return 0;
@@ -137,10 +139,11 @@ uint64_t handle_dir(token *t, bytecount *bc, uint8_t isasm, uint64_t address, ui
switch (t->str[k]) {
case '\\':
switch (t->str[k+1]) {
- case 'n': c = '\n'; break;
- case 'r': c = '\r'; break;
- case 't': c = '\t'; break;
- case '0': c = '\0'; break;
+ case 'n' : c = '\n'; break;
+ case 'r' : c = '\r'; break;
+ case 't' : c = '\t'; break;
+ case '\\': c = '\\'; break;
+ case '0' : c = '\0'; break;
}
k++;
break;