diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/insn/cmp.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/insn/cmp.rs b/src/insn/cmp.rs index 835202c..95c513d 100644 --- a/src/insn/cmp.rs +++ b/src/insn/cmp.rs @@ -1,5 +1,11 @@ use super::Cmp; -use crate::{Asm, Imm16, MemOp}; +use crate::{Asm, Imm16, Imm8, MemOp}; + +impl Cmp<MemOp, Imm8> for Asm { + fn cmp(&mut self, op1: MemOp, op2: Imm8) { + self.encode_mi(0x80, 0x7, op1, op2); + } +} impl Cmp<MemOp, Imm16> for Asm { fn cmp(&mut self, op1: MemOp, op2: Imm16) { |