summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;