diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-24 17:00:55 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-24 17:04:10 -0400 |
commit | aa3820495e8c2f103f82923240e7936ca78fab84 (patch) | |
tree | fe1441e28054a3e7b7300e2597df9444ac6f018b /etc/oemu | |
parent | 24dabe54c845b88ccd4842eb0e7c0fa097a7beaf (diff) |
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 <ian@osmora.org>
Diffstat (limited to 'etc/oemu')
-rw-r--r-- | etc/oemu/test-00.s | 3 |
1 files changed, 2 insertions, 1 deletions
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 |