aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/insn/test.rs
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-12-05 00:56:58 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-12-05 00:56:58 +0100
commit3f47ede3d0a1aaf3a9176ab9c93b8d0e970388f2 (patch)
tree395c01d6dad25e14ee8f6879d3f040e9f57f1d2f /src/insn/test.rs
parent4a80838151a9945438739ab937c415939e2ccf5b (diff)
downloadjuicebox-asm-3f47ede3d0a1aaf3a9176ab9c93b8d0e970388f2.tar.gz
juicebox-asm-3f47ede3d0a1aaf3a9176ab9c93b8d0e970388f2.zip
insn: add additional insn required for the new tiny_vm example
Diffstat (limited to 'src/insn/test.rs')
-rw-r--r--src/insn/test.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/insn/test.rs b/src/insn/test.rs
index 25f1680..b7ac774 100644
--- a/src/insn/test.rs
+++ b/src/insn/test.rs
@@ -11,3 +11,9 @@ impl Test<Reg32, Reg32> for Asm {
self.encode_rr(0x85, op1, op2);
}
}
+
+impl Test<MemOp, Imm16> for Asm {
+ fn test(&mut self, op1: MemOp, op2: Imm16) {
+ self.encode_mi(0xf7, 0, op1, op2);
+ }
+}