From 0d5a742b653870e742b3565389743bbccb39851d Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 27 Jul 2025 23:25:08 -0400 Subject: oasm: Introduce XOR mnemonic Implement mnemonic for the XOR instruction: -- xor x4, #1 ! x4 = x4 ^ 1 -- 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 c542c72..4c81bc4 100644 --- a/usr.bin/oasm/include/oasm/lex.h +++ b/usr.bin/oasm/include/oasm/lex.h @@ -105,6 +105,7 @@ typedef enum { TT_MROQ, /* 'mroq' */ TT_AND, /* 'and' */ TT_OR, /* 'or' */ + TT_XOR, /* 'xor' */ /* Register ops */ TT_MOV, /* 'mov' */ -- cgit v1.2.3