From 005fca316085c3a2ce3e43b92531f006a15fbdd2 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sun, 5 Mar 2023 22:20:17 +0100 Subject: Add jmp test --- src/insn/nop.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/insn/nop.rs (limited to 'src/insn') diff --git a/src/insn/nop.rs b/src/insn/nop.rs new file mode 100644 index 0000000..82057db --- /dev/null +++ b/src/insn/nop.rs @@ -0,0 +1,7 @@ +use crate::Asm; + +impl Asm { + pub fn nop(&mut self) { + self.emit(&[0x90]); + } +} -- cgit v1.2.3