aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/juicebox_asm/insn.rs.html
diff options
context:
space:
mode:
authorjohannst <johannst@users.noreply.github.com>2023-03-05 21:22:11 +0000
committerjohannst <johannst@users.noreply.github.com>2023-03-05 21:22:11 +0000
commite169a010c4942c610314a335e7c79f0cb421eef1 (patch)
tree48be45ad3289a0de40f35c8a2e7acb737b0f4bfc /src/juicebox_asm/insn.rs.html
parent865c1d3231fd57c648121d961be91793d0bfe690 (diff)
downloadjuicebox-asm-e169a010c4942c610314a335e7c79f0cb421eef1.tar.gz
juicebox-asm-e169a010c4942c610314a335e7c79f0cb421eef1.zip
deploy: 8316b628bbc9945fd1d08305317cf49a6482801f
Diffstat (limited to 'src/juicebox_asm/insn.rs.html')
-rw-r--r--src/juicebox_asm/insn.rs.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/juicebox_asm/insn.rs.html b/src/juicebox_asm/insn.rs.html
index 2affb2d..fd7a473 100644
--- a/src/juicebox_asm/insn.rs.html
+++ b/src/juicebox_asm/insn.rs.html
@@ -46,14 +46,23 @@
<a href="#46" id="46">46</a>
<a href="#47" id="47">47</a>
<a href="#48" id="48">48</a>
+<a href="#49" id="49">49</a>
+<a href="#50" id="50">50</a>
+<a href="#51" id="51">51</a>
+<a href="#52" id="52">52</a>
+<a href="#53" id="53">53</a>
+<a href="#54" id="54">54</a>
+<a href="#55" id="55">55</a>
</pre><pre class="rust"><code><span class="doccomment">//! Trait definitions of various instructions.
</span><span class="kw">mod </span>add;
+<span class="kw">mod </span>call;
<span class="kw">mod </span>dec;
<span class="kw">mod </span>jmp;
<span class="kw">mod </span>jnz;
<span class="kw">mod </span>jz;
<span class="kw">mod </span>mov;
+<span class="kw">mod </span>nop;
<span class="kw">mod </span>ret;
<span class="kw">mod </span>test;
@@ -62,6 +71,11 @@
</span><span class="kw">fn </span>add(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: T, op2: U);
}
+<span class="kw">pub trait </span>Call&lt;T&gt; {
+ <span class="doccomment">/// Emit a call instruction.
+ </span><span class="kw">fn </span>call(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: T);
+}
+
<span class="kw">pub trait </span>Dec&lt;T&gt; {
<span class="doccomment">/// Emit a decrement instruction.
</span><span class="kw">fn </span>dec(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: T);