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 /etc/oemu | |
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 'etc/oemu')
-rw-r--r-- | etc/oemu/test-00.s | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/oemu/test-00.s b/etc/oemu/test-00.s index ccd7da1..4b5db7c 100644 --- a/etc/oemu/test-00.s +++ b/etc/oemu/test-00.s @@ -13,4 +13,6 @@ some_label: ! X add x2, #3 ! ~ 0x0000001C mrow x4, #0 ! ~ 0x00000020 nop ! ~ 0x00000024 - hlt ! ~ 0x00000028 + or x1, #3 ! ~ 0x00000028 + xor x2, #3 ! ~ 0x0000002C + hlt ! ~ 0x00000030 |