From 2294180c3778d0fcfa877818e98c420fcd54bb8a Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 5 Dec 2023 22:08:06 +0000 Subject: deploy: 7e98f5def5942969f97f5f015e7fb8417793d132 --- src/juicebox_asm/insn/add.rs.html | 26 +++++++++++++++++++++++++- src/juicebox_asm/insn/call.rs.html | 2 +- src/juicebox_asm/insn/cmp.rs.html | 15 +++++++++++++++ src/juicebox_asm/insn/dec.rs.html | 2 +- src/juicebox_asm/insn/jmp.rs.html | 2 +- src/juicebox_asm/insn/jnz.rs.html | 2 +- src/juicebox_asm/insn/jz.rs.html | 2 +- src/juicebox_asm/insn/mov.rs.html | 18 +++++++++++++++++- src/juicebox_asm/insn/nop.rs.html | 2 +- src/juicebox_asm/insn/ret.rs.html | 2 +- src/juicebox_asm/insn/test.rs.html | 14 +++++++++++++- 11 files changed, 77 insertions(+), 10 deletions(-) create mode 100644 src/juicebox_asm/insn/cmp.rs.html (limited to 'src/juicebox_asm/insn') diff --git a/src/juicebox_asm/insn/add.rs.html b/src/juicebox_asm/insn/add.rs.html index 0a24951..d7f968a 100644 --- a/src/juicebox_asm/insn/add.rs.html +++ b/src/juicebox_asm/insn/add.rs.html @@ -1,4 +1,4 @@ -add.rs - source
1
+add.rs - source
1
 2
 3
 4
@@ -11,6 +11,18 @@
 11
 12
 13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
 
use crate::prelude::*;
 
 impl Add<Reg64, Reg64> for Asm {
@@ -24,4 +36,16 @@
         self.encode_rr(0x01, op1, op2);
     }
 }
+
+impl Add<MemOp, Reg16> for Asm {
+    fn add(&mut self, op1: MemOp, op2: Reg16) {
+        self.encode_mr(0x01, op1, op2);
+    }
+}
+
+impl Add<MemOp, Imm16> for Asm {
+    fn add(&mut self, op1: MemOp, op2: Imm16) {
+        self.encode_mi(0x81, 0, op1, op2);
+    }
+}
 
\ No newline at end of file diff --git a/src/juicebox_asm/insn/call.rs.html b/src/juicebox_asm/insn/call.rs.html index 38cb339..f9649ed 100644 --- a/src/juicebox_asm/insn/call.rs.html +++ b/src/juicebox_asm/insn/call.rs.html @@ -1,4 +1,4 @@ -call.rs - source
1
+call.rs - source
1
 2
 3
 4
diff --git a/src/juicebox_asm/insn/cmp.rs.html b/src/juicebox_asm/insn/cmp.rs.html
new file mode 100644
index 0000000..b50d90d
--- /dev/null
+++ b/src/juicebox_asm/insn/cmp.rs.html
@@ -0,0 +1,15 @@
+cmp.rs - source
1
+2
+3
+4
+5
+6
+7
+
use crate::prelude::*;
+
+impl Cmp<MemOp, Imm16> for Asm {
+    fn cmp(&mut self, op1: MemOp, op2: Imm16) {
+        self.encode_mi(0x81, 0x7, op1, op2);
+    }
+}
+
\ No newline at end of file diff --git a/src/juicebox_asm/insn/dec.rs.html b/src/juicebox_asm/insn/dec.rs.html index 2d46c4c..2afecd2 100644 --- a/src/juicebox_asm/insn/dec.rs.html +++ b/src/juicebox_asm/insn/dec.rs.html @@ -1,4 +1,4 @@ -dec.rs - source
1
+dec.rs - source
1
 2
 3
 4
diff --git a/src/juicebox_asm/insn/jmp.rs.html b/src/juicebox_asm/insn/jmp.rs.html
index 77b34c5..55da0e3 100644
--- a/src/juicebox_asm/insn/jmp.rs.html
+++ b/src/juicebox_asm/insn/jmp.rs.html
@@ -1,4 +1,4 @@
-jmp.rs - source
1
+jmp.rs - source
1
 2
 3
 4
diff --git a/src/juicebox_asm/insn/jnz.rs.html b/src/juicebox_asm/insn/jnz.rs.html
index 24a1e4a..45fb92d 100644
--- a/src/juicebox_asm/insn/jnz.rs.html
+++ b/src/juicebox_asm/insn/jnz.rs.html
@@ -1,4 +1,4 @@
-jnz.rs - source
1
+jnz.rs - source
1
 2
 3
 4
diff --git a/src/juicebox_asm/insn/jz.rs.html b/src/juicebox_asm/insn/jz.rs.html
index bbc67d8..4b17a71 100644
--- a/src/juicebox_asm/insn/jz.rs.html
+++ b/src/juicebox_asm/insn/jz.rs.html
@@ -1,4 +1,4 @@
-jz.rs - source
1
+jz.rs - source
1
 2
 3
 4
diff --git a/src/juicebox_asm/insn/mov.rs.html b/src/juicebox_asm/insn/mov.rs.html
index 0508d37..7be5d09 100644
--- a/src/juicebox_asm/insn/mov.rs.html
+++ b/src/juicebox_asm/insn/mov.rs.html
@@ -1,4 +1,4 @@
-mov.rs - source
1
+mov.rs - source
1
 2
 3
 4
@@ -103,6 +103,14 @@
 103
 104
 105
+106
+107
+108
+109
+110
+111
+112
+113
 
use crate::prelude::*;
 
 // -- MOV : reg reg
@@ -208,4 +216,12 @@
         self.encode_oi(0xb0, op1, op2);
     }
 }
+
+// -- MOV : mem imm
+
+impl Mov<MemOp, Imm16> for Asm {
+    fn mov(&mut self, op1: MemOp, op2: Imm16) {
+        self.encode_mi(0xc7, 0, op1, op2);
+    }
+}
 
\ No newline at end of file diff --git a/src/juicebox_asm/insn/nop.rs.html b/src/juicebox_asm/insn/nop.rs.html index 0469ab0..accc13a 100644 --- a/src/juicebox_asm/insn/nop.rs.html +++ b/src/juicebox_asm/insn/nop.rs.html @@ -1,4 +1,4 @@ -nop.rs - source
1
+nop.rs - source
1
 2
 3
 4
diff --git a/src/juicebox_asm/insn/ret.rs.html b/src/juicebox_asm/insn/ret.rs.html
index bb50d9f..97070e8 100644
--- a/src/juicebox_asm/insn/ret.rs.html
+++ b/src/juicebox_asm/insn/ret.rs.html
@@ -1,4 +1,4 @@
-ret.rs - source
1
+ret.rs - source
1
 2
 3
 4
diff --git a/src/juicebox_asm/insn/test.rs.html b/src/juicebox_asm/insn/test.rs.html
index 5245439..d636920 100644
--- a/src/juicebox_asm/insn/test.rs.html
+++ b/src/juicebox_asm/insn/test.rs.html
@@ -1,4 +1,4 @@
-test.rs - source
1
+test.rs - source
1
 2
 3
 4
@@ -11,6 +11,12 @@
 11
 12
 13
+14
+15
+16
+17
+18
+19
 
use crate::prelude::*;
 
 impl Test<Reg64, Reg64> for Asm {
@@ -24,4 +30,10 @@
         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);
+    }
+}
 
\ No newline at end of file -- cgit v1.2.3