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 --- 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 b392403..375771e 100644 --- a/usr.bin/oasm/include/oasm/lex.h +++ b/usr.bin/oasm/include/oasm/lex.h @@ -90,6 +90,7 @@ struct oasm_state; */ typedef enum { TT_UNKNOWN, /* Unknown token */ + TT_NOP, /* No operation */ /* Arithmetic instructions */ TT_ADD, /* 'add' */ -- cgit v1.2.3