aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/insn/jmp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/insn/jmp.rs')
-rw-r--r--src/insn/jmp.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/insn/jmp.rs b/src/insn/jmp.rs
new file mode 100644
index 0000000..71d1dbc
--- /dev/null
+++ b/src/insn/jmp.rs
@@ -0,0 +1,7 @@
+use crate::prelude::*;
+
+impl Jmp<&mut Label> for Asm {
+ fn jmp(&mut self, op1: &mut Label) {
+ self.encode_jmp_label(&[0xe9], op1);
+ }
+}