From a4a7080dee359ca95f09d91d68d1d8c4a1f59cd6 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 27 Jul 2025 22:59:18 -0400 Subject: oasm: Introduce AND mnemonic Implement mnemonic for the AND instruction: -- and x1, #7 ! x1 = x1 & 7 -- Signed-off-by: Ian Moffett --- usr.bin/oasm/include/oasm/lex.h | 1 + 1 file changed, 1 insertion(+) (limited to 'usr.bin/oasm/include') 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' */ -- cgit v1.2.3