diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-02-27 23:35:32 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-02-27 23:39:25 +0100 |
commit | d44466c852dd353166c79d1cc618646b21e17f8c (patch) | |
tree | 43881e9164badf11206785688b4787859b710c02 /src/insn/test.rs | |
parent | fdc967fb7a4c8417e846a7c2b1656e3d482967cd (diff) | |
download | juicebox-asm-d44466c852dd353166c79d1cc618646b21e17f8c.tar.gz juicebox-asm-d44466c852dd353166c79d1cc618646b21e17f8c.zip |
Add JNZ and Reg32 ADD, DEC, TEST for readme example
Diffstat (limited to 'src/insn/test.rs')
-rw-r--r-- | src/insn/test.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/insn/test.rs b/src/insn/test.rs index 1319e3f..25f1680 100644 --- a/src/insn/test.rs +++ b/src/insn/test.rs @@ -5,3 +5,9 @@ impl Test<Reg64, Reg64> for Asm { self.encode_rr(0x85, op1, op2); } } + +impl Test<Reg32, Reg32> for Asm { + fn test(&mut self, op1: Reg32, op2: Reg32) { + self.encode_rr(0x85, op1, op2); + } +} |