aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/juicebox_asm/insn/add.rs.html
diff options
context:
space:
mode:
authorjohannst <johannst@users.noreply.github.com>2024-12-11 21:52:27 +0000
committerjohannst <johannst@users.noreply.github.com>2024-12-11 21:52:27 +0000
commit9ebb4b9d82decbd9e8ea901e6d240e1af9f190b3 (patch)
tree8b1d383541206f421dbda40059de33b6d2a2a121 /src/juicebox_asm/insn/add.rs.html
parent56ffb6a3bc7d8951a0c9f06b02b13ae9c070eced (diff)
downloadjuicebox-asm-9ebb4b9d82decbd9e8ea901e6d240e1af9f190b3.tar.gz
juicebox-asm-9ebb4b9d82decbd9e8ea901e6d240e1af9f190b3.zip
deploy: aedbcbf6c8e45367364a852d5b10d45b27b61c44
Diffstat (limited to 'src/juicebox_asm/insn/add.rs.html')
-rw-r--r--src/juicebox_asm/insn/add.rs.html16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/juicebox_asm/insn/add.rs.html b/src/juicebox_asm/insn/add.rs.html
index e62bc4a..f91aa25 100644
--- a/src/juicebox_asm/insn/add.rs.html
+++ b/src/juicebox_asm/insn/add.rs.html
@@ -36,8 +36,14 @@
<a href="#35" id="35">35</a>
<a href="#36" id="36">36</a>
<a href="#37" id="37">37</a>
-<a href="#38" id="38">38</a></pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">super</span>::Add;
-<span class="kw">use crate</span>::{Asm, Imm16, MemOp, Reg16, Reg32, Reg64};
+<a href="#38" id="38">38</a>
+<a href="#39" id="39">39</a>
+<a href="#40" id="40">40</a>
+<a href="#41" id="41">41</a>
+<a href="#42" id="42">42</a>
+<a href="#43" id="43">43</a>
+<a href="#44" id="44">44</a></pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">super</span>::Add;
+<span class="kw">use crate</span>::{Asm, Imm16, Imm8, MemOp, Reg16, Reg32, Reg64};
<span class="kw">impl </span>Add&lt;Reg64, Reg64&gt; <span class="kw">for </span>Asm {
<span class="kw">fn </span>add(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: Reg64, op2: Reg64) {
@@ -63,6 +69,12 @@
}
}
+<span class="kw">impl </span>Add&lt;MemOp, Imm8&gt; <span class="kw">for </span>Asm {
+ <span class="kw">fn </span>add(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: MemOp, op2: Imm8) {
+ <span class="self">self</span>.encode_mi(<span class="number">0x83</span>, <span class="number">0</span>, op1, op2);
+ }
+}
+
<span class="kw">impl </span>Add&lt;MemOp, Imm16&gt; <span class="kw">for </span>Asm {
<span class="kw">fn </span>add(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: MemOp, op2: Imm16) {
<span class="self">self</span>.encode_mi(<span class="number">0x81</span>, <span class="number">0</span>, op1, op2);