aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/insn
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-03-05 22:20:17 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-03-05 22:20:17 +0100
commit005fca316085c3a2ce3e43b92531f006a15fbdd2 (patch)
tree2e252a7a5f54baf7ab6613e6dc12af2557cef0e2 /src/insn
parenta3321c416757d264957f4581bcb1bb164a9d696b (diff)
downloadjuicebox-asm-005fca316085c3a2ce3e43b92531f006a15fbdd2.tar.gz
juicebox-asm-005fca316085c3a2ce3e43b92531f006a15fbdd2.zip
Add jmp test
Diffstat (limited to 'src/insn')
-rw-r--r--src/insn/nop.rs7
1 files changed, 7 insertions, 0 deletions
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]);
+ }
+}