diff options
Diffstat (limited to 'usr.bin/oasm/lex.c')
-rw-r--r-- | usr.bin/oasm/lex.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/oasm/lex.c b/usr.bin/oasm/lex.c index 4c402be..ce97400 100644 --- a/usr.bin/oasm/lex.c +++ b/usr.bin/oasm/lex.c @@ -56,6 +56,7 @@ static char putback = '\0'; #define S_IMN_MROQ "mroq" #define S_IMN_AND "and" #define S_IMN_OR "or" +#define S_IMN_XOR "xor" /* Instruction length */ #define OSMX64_INST_LEN 4 @@ -212,6 +213,8 @@ token_arith(char *p) return TT_HLT; } else if (strcmp(p, S_IMN_MUL) == 0) { return TT_MUL; + } else if (strcmp(p, S_IMN_XOR) == 0) { + return TT_XOR; } return TT_UNKNOWN; |