aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2024-12-07 01:59:18 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2024-12-07 01:59:18 +0100
commit9c3c3fd923d894d2351eb22129ea693eb98fa8ff (patch)
tree2bd2064f2421a5989fc13c8c8e0ea060c8555a5e /src
parent2699292790476eccd726fc5dae179b3a688a1468 (diff)
downloadjuicebox-asm-9c3c3fd923d894d2351eb22129ea693eb98fa8ff.tar.gz
juicebox-asm-9c3c3fd923d894d2351eb22129ea693eb98fa8ff.zip
bf: add jit compiler and interpreter
Diffstat (limited to 'src')
-rw-r--r--src/insn/cmp.rs8
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) {