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