From aa3820495e8c2f103f82923240e7936ca78fab84 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 24 Jul 2025 17:00:55 -0400 Subject: oasm: Introduce encoding for the NOP instruction The NOP (no operation) instruction simply tells the processor to do nothing. This can be useful for various things such as padding, timing, etc. -- nop nop nop ... -- Signed-off-by: Ian Moffett --- etc/oemu/test-00.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/oemu/test-00.s b/etc/oemu/test-00.s index ca0094d..ccd7da1 100644 --- a/etc/oemu/test-00.s +++ b/etc/oemu/test-00.s @@ -12,4 +12,5 @@ some_label: ! X inc x1 ! ~ 0x00000018 add x2, #3 ! ~ 0x0000001C mrow x4, #0 ! ~ 0x00000020 - hlt ! ~ 0x00000024 + nop ! ~ 0x00000024 + hlt ! ~ 0x00000028 -- cgit v1.2.3