aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/insn/dec.rs
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-02-27 23:35:32 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-02-27 23:39:25 +0100
commitd44466c852dd353166c79d1cc618646b21e17f8c (patch)
tree43881e9164badf11206785688b4787859b710c02 /src/insn/dec.rs
parentfdc967fb7a4c8417e846a7c2b1656e3d482967cd (diff)
downloadjuicebox-asm-d44466c852dd353166c79d1cc618646b21e17f8c.tar.gz
juicebox-asm-d44466c852dd353166c79d1cc618646b21e17f8c.zip
Add JNZ and Reg32 ADD, DEC, TEST for readme example
Diffstat (limited to 'src/insn/dec.rs')
-rw-r--r--src/insn/dec.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/insn/dec.rs b/src/insn/dec.rs
index 7de5a54..c5803e7 100644
--- a/src/insn/dec.rs
+++ b/src/insn/dec.rs
@@ -5,3 +5,9 @@ impl Dec<Reg64> for Asm {
self.encode_r(0xff, 1, op1);
}
}
+
+impl Dec<Reg32> for Asm {
+ fn dec(&mut self, op1: Reg32) {
+ self.encode_r(0xff, 1, op1);
+ }
+}