diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-27 23:25:08 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-28 03:31:14 -0400 |
commit | 0d5a742b653870e742b3565389743bbccb39851d (patch) | |
tree | d90ec73163012779d7834697e21ff07788bb970c /usr.bin/oasm/include | |
parent | 7859e0ff5fbc94ec0b36168ac81e94482274b5c6 (diff) |
oasm: Introduce XOR mnemonic
Implement mnemonic for the XOR instruction:
--
xor x4, #1 ! x4 = x4 ^ 1
--
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 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' */ |