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 --- etc/oemu/test-00.s | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'etc/oemu/test-00.s') 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 -- cgit v1.2.3