aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/juicebox_asm/insn.rs.html
diff options
context:
space:
mode:
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);