From 3f47ede3d0a1aaf3a9176ab9c93b8d0e970388f2 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Tue, 5 Dec 2023 00:56:58 +0100 Subject: insn: add additional insn required for the new tiny_vm example --- src/insn/test.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/insn/test.rs') 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 for Asm { self.encode_rr(0x85, op1, op2); } } + +impl Test for Asm { + fn test(&mut self, op1: MemOp, op2: Imm16) { + self.encode_mi(0xf7, 0, op1, op2); + } +} -- cgit v1.2.3