diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-27 22:59:18 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-28 03:30:58 -0400 |
commit | a4a7080dee359ca95f09d91d68d1d8c4a1f59cd6 (patch) | |
tree | ea3a16a62d1c2bd4426273f8e28907f20c6e69ff /usr.bin/oasm/include | |
parent | 6b3c37f5bc9dbd3656ee08b925f2df2d233084fe (diff) |
oasm: Introduce AND mnemonic
Implement mnemonic for the AND instruction:
--
and x1, #7 ! x1 = x1 & 7
--
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin/oasm/include')
-rw-r--r-- | usr.bin/oasm/include/oasm/lex.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/oasm/include/oasm/lex.h b/usr.bin/oasm/include/oasm/lex.h index 873f6b9..69e98ff 100644 --- a/usr.bin/oasm/include/oasm/lex.h +++ b/usr.bin/oasm/include/oasm/lex.h @@ -103,6 +103,7 @@ typedef enum { TT_MROW, /* 'mrow' */ TT_MROD, /* 'mrod' */ TT_MROQ, /* 'mroq' */ + TT_AND, /* 'and' */ /* Register ops */ TT_MOV, /* 'mov' */ |