diff options
Diffstat (limited to 'src/juicebox_asm')
-rw-r--r-- | src/juicebox_asm/insn/cmp.rs.html | 16 |
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<Mem8, Imm8> <span class="kw">for </span>Asm { <span class="kw">fn </span>cmp(<span class="kw-2">&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<Reg64, Reg64> <span class="kw">for </span>Asm { + <span class="kw">fn </span>cmp(<span class="kw-2">&mut </span><span class="self">self</span>, op1: Reg64, op2: Reg64) { + <span class="self">self</span>.encode_rr(<span class="kw-2">&</span>[<span class="number">0x3b</span>], op1, op2); + } +} </code></pre></div></section></main></body></html>
\ No newline at end of file |