summaryrefslogtreecommitdiff
path: root/usr.bin/oasm/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/oasm/lex.c')
-rw-r--r--usr.bin/oasm/lex.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.bin/oasm/lex.c b/usr.bin/oasm/lex.c
index ce97400..1f58d07 100644
--- a/usr.bin/oasm/lex.c
+++ b/usr.bin/oasm/lex.c
@@ -57,6 +57,8 @@ static char putback = '\0';
#define S_IMN_AND "and"
#define S_IMN_OR "or"
#define S_IMN_XOR "xor"
+#define S_IMN_LSL "lsl"
+#define S_IMN_LSR "lsr"
/* Instruction length */
#define OSMX64_INST_LEN 4
@@ -269,6 +271,12 @@ token_bitw(char *p)
return token;
}
+ if (strcmp(p, S_IMN_LSL) == 0) {
+ return TT_LSL;
+ } else if (strcmp(p, S_IMN_LSR) == 0) {
+ return TT_LSR;
+ }
+
return TT_UNKNOWN;
}