diff options
author | johannst <johannst@users.noreply.github.com> | 2023-03-05 21:22:11 +0000 |
---|---|---|
committer | johannst <johannst@users.noreply.github.com> | 2023-03-05 21:22:11 +0000 |
commit | e169a010c4942c610314a335e7c79f0cb421eef1 (patch) | |
tree | 48be45ad3289a0de40f35c8a2e7acb737b0f4bfc /src/juicebox_asm/insn.rs.html | |
parent | 865c1d3231fd57c648121d961be91793d0bfe690 (diff) | |
download | juicebox-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.html | 14 |
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">&mut </span><span class="self">self</span>, op1: T, op2: U); } +<span class="kw">pub trait </span>Call<T> { + <span class="doccomment">/// Emit a call instruction. + </span><span class="kw">fn </span>call(<span class="kw-2">&mut </span><span class="self">self</span>, op1: T); +} + <span class="kw">pub trait </span>Dec<T> { <span class="doccomment">/// Emit a decrement instruction. </span><span class="kw">fn </span>dec(<span class="kw-2">&mut </span><span class="self">self</span>, op1: T); |