aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/juicebox_asm/insn/cmp.rs.html
diff options
context:
space:
mode:
authorjohannst <johannst@users.noreply.github.com>2024-12-13 21:12:22 +0000
committerjohannst <johannst@users.noreply.github.com>2024-12-13 21:12:22 +0000
commitefd6fd88d2c73ae48ff74ba9e772e2347009fe9e (patch)
tree72fb755ffc8f3e5b250c20e9596c107ff5ed2c61 /src/juicebox_asm/insn/cmp.rs.html
parent22f0c8c5d4b3604227187b9843737c23be75ba75 (diff)
downloadjuicebox-asm-efd6fd88d2c73ae48ff74ba9e772e2347009fe9e.tar.gz
juicebox-asm-efd6fd88d2c73ae48ff74ba9e772e2347009fe9e.zip
deploy: e6095b086f6e2429fb952ae75a193dc89b4b9082
Diffstat (limited to 'src/juicebox_asm/insn/cmp.rs.html')
-rw-r--r--src/juicebox_asm/insn/cmp.rs.html16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/juicebox_asm/insn/cmp.rs.html b/src/juicebox_asm/insn/cmp.rs.html
index 35bb5b7..166f22f 100644
--- a/src/juicebox_asm/insn/cmp.rs.html
+++ b/src/juicebox_asm/insn/cmp.rs.html
@@ -12,8 +12,14 @@
<a href="#11" id="11">11</a>
<a href="#12" id="12">12</a>
<a href="#13" id="13">13</a>
-<a href="#14" id="14">14</a></pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">super</span>::Cmp;
-<span class="kw">use crate</span>::{Asm, Imm16, Imm8, Mem16, Mem8};
+<a href="#14" id="14">14</a>
+<a href="#15" id="15">15</a>
+<a href="#16" id="16">16</a>
+<a href="#17" id="17">17</a>
+<a href="#18" id="18">18</a>
+<a href="#19" id="19">19</a>
+<a href="#20" id="20">20</a></pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">super</span>::Cmp;
+<span class="kw">use crate</span>::{Asm, Imm16, Imm8, Mem16, Mem8, Reg64};
<span class="kw">impl </span>Cmp&lt;Mem8, Imm8&gt; <span class="kw">for </span>Asm {
<span class="kw">fn </span>cmp(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: Mem8, op2: Imm8) {
@@ -26,4 +32,10 @@
<span class="self">self</span>.encode_mi(<span class="number">0x81</span>, <span class="number">0x7</span>, op1, op2);
}
}
+
+<span class="kw">impl </span>Cmp&lt;Reg64, Reg64&gt; <span class="kw">for </span>Asm {
+ <span class="kw">fn </span>cmp(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: Reg64, op2: Reg64) {
+ <span class="self">self</span>.encode_rr(<span class="kw-2">&amp;</span>[<span class="number">0x3b</span>], op1, op2);
+ }
+}
</code></pre></div></section></main></body></html> \ No newline at end of file