diff options
Diffstat (limited to 'src/juicebox_asm/insn')
-rw-r--r-- | src/juicebox_asm/insn/add.rs.html | 4 | ||||
-rw-r--r-- | src/juicebox_asm/insn/call.rs.html | 4 | ||||
-rw-r--r-- | src/juicebox_asm/insn/cmp.rs.html | 4 | ||||
-rw-r--r-- | src/juicebox_asm/insn/dec.rs.html | 4 | ||||
-rw-r--r-- | src/juicebox_asm/insn/jmp.rs.html | 4 | ||||
-rw-r--r-- | src/juicebox_asm/insn/jnz.rs.html | 4 | ||||
-rw-r--r-- | src/juicebox_asm/insn/jz.rs.html | 4 | ||||
-rw-r--r-- | src/juicebox_asm/insn/mov.rs.html | 4 | ||||
-rw-r--r-- | src/juicebox_asm/insn/nop.rs.html | 4 | ||||
-rw-r--r-- | src/juicebox_asm/insn/ret.rs.html | 4 | ||||
-rw-r--r-- | src/juicebox_asm/insn/test.rs.html | 4 |
11 files changed, 33 insertions, 11 deletions
diff --git a/src/juicebox_asm/insn/add.rs.html b/src/juicebox_asm/insn/add.rs.html index d7f968a..d7d8c39 100644 --- a/src/juicebox_asm/insn/add.rs.html +++ b/src/juicebox_asm/insn/add.rs.html @@ -23,7 +23,9 @@ <a href="#23" id="23">23</a> <a href="#24" id="24">24</a> <a href="#25" id="25">25</a> -</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">crate</span>::prelude::<span class="kw-2">*</span>; +<a href="#26" id="26">26</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}; <span class="kw">impl </span>Add<Reg64, Reg64> <span class="kw">for </span>Asm { <span class="kw">fn </span>add(<span class="kw-2">&mut </span><span class="self">self</span>, op1: Reg64, op2: Reg64) { diff --git a/src/juicebox_asm/insn/call.rs.html b/src/juicebox_asm/insn/call.rs.html index f9649ed..e88996d 100644 --- a/src/juicebox_asm/insn/call.rs.html +++ b/src/juicebox_asm/insn/call.rs.html @@ -5,7 +5,9 @@ <a href="#5" id="5">5</a> <a href="#6" id="6">6</a> <a href="#7" id="7">7</a> -</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">crate</span>::prelude::<span class="kw-2">*</span>; +<a href="#8" id="8">8</a> +</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">super</span>::Call; +<span class="kw">use crate</span>::{Asm, Reg64}; <span class="kw">impl </span>Call<Reg64> <span class="kw">for </span>Asm { <span class="kw">fn </span>call(<span class="kw-2">&mut </span><span class="self">self</span>, op1: Reg64) { diff --git a/src/juicebox_asm/insn/cmp.rs.html b/src/juicebox_asm/insn/cmp.rs.html index b50d90d..4e28818 100644 --- a/src/juicebox_asm/insn/cmp.rs.html +++ b/src/juicebox_asm/insn/cmp.rs.html @@ -5,7 +5,9 @@ <a href="#5" id="5">5</a> <a href="#6" id="6">6</a> <a href="#7" id="7">7</a> -</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">crate</span>::prelude::<span class="kw-2">*</span>; +<a href="#8" id="8">8</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, MemOp}; <span class="kw">impl </span>Cmp<MemOp, Imm16> <span class="kw">for </span>Asm { <span class="kw">fn </span>cmp(<span class="kw-2">&mut </span><span class="self">self</span>, op1: MemOp, op2: Imm16) { diff --git a/src/juicebox_asm/insn/dec.rs.html b/src/juicebox_asm/insn/dec.rs.html index 2afecd2..5a10063 100644 --- a/src/juicebox_asm/insn/dec.rs.html +++ b/src/juicebox_asm/insn/dec.rs.html @@ -11,7 +11,9 @@ <a href="#11" id="11">11</a> <a href="#12" id="12">12</a> <a href="#13" id="13">13</a> -</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">crate</span>::prelude::<span class="kw-2">*</span>; +<a href="#14" id="14">14</a> +</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">super</span>::Dec; +<span class="kw">use crate</span>::{Asm, Reg32, Reg64}; <span class="kw">impl </span>Dec<Reg64> <span class="kw">for </span>Asm { <span class="kw">fn </span>dec(<span class="kw-2">&mut </span><span class="self">self</span>, op1: Reg64) { diff --git a/src/juicebox_asm/insn/jmp.rs.html b/src/juicebox_asm/insn/jmp.rs.html index 55da0e3..e0167e3 100644 --- a/src/juicebox_asm/insn/jmp.rs.html +++ b/src/juicebox_asm/insn/jmp.rs.html @@ -5,7 +5,9 @@ <a href="#5" id="5">5</a> <a href="#6" id="6">6</a> <a href="#7" id="7">7</a> -</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">crate</span>::prelude::<span class="kw-2">*</span>; +<a href="#8" id="8">8</a> +</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">super</span>::Jmp; +<span class="kw">use crate</span>::{Asm, Label}; <span class="kw">impl </span>Jmp<<span class="kw-2">&mut </span>Label> <span class="kw">for </span>Asm { <span class="kw">fn </span>jmp(<span class="kw-2">&mut </span><span class="self">self</span>, op1: <span class="kw-2">&mut </span>Label) { diff --git a/src/juicebox_asm/insn/jnz.rs.html b/src/juicebox_asm/insn/jnz.rs.html index 45fb92d..be0062d 100644 --- a/src/juicebox_asm/insn/jnz.rs.html +++ b/src/juicebox_asm/insn/jnz.rs.html @@ -5,7 +5,9 @@ <a href="#5" id="5">5</a> <a href="#6" id="6">6</a> <a href="#7" id="7">7</a> -</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">crate</span>::prelude::<span class="kw-2">*</span>; +<a href="#8" id="8">8</a> +</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">super</span>::Jnz; +<span class="kw">use crate</span>::{Asm, Label}; <span class="kw">impl </span>Jnz<<span class="kw-2">&mut </span>Label> <span class="kw">for </span>Asm { <span class="kw">fn </span>jnz(<span class="kw-2">&mut </span><span class="self">self</span>, op1: <span class="kw-2">&mut </span>Label) { diff --git a/src/juicebox_asm/insn/jz.rs.html b/src/juicebox_asm/insn/jz.rs.html index 4b17a71..e4197af 100644 --- a/src/juicebox_asm/insn/jz.rs.html +++ b/src/juicebox_asm/insn/jz.rs.html @@ -5,7 +5,9 @@ <a href="#5" id="5">5</a> <a href="#6" id="6">6</a> <a href="#7" id="7">7</a> -</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">crate</span>::prelude::<span class="kw-2">*</span>; +<a href="#8" id="8">8</a> +</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">super</span>::Jz; +<span class="kw">use crate</span>::{Asm, Label}; <span class="kw">impl </span>Jz<<span class="kw-2">&mut </span>Label> <span class="kw">for </span>Asm { <span class="kw">fn </span>jz(<span class="kw-2">&mut </span><span class="self">self</span>, op1: <span class="kw-2">&mut </span>Label) { diff --git a/src/juicebox_asm/insn/mov.rs.html b/src/juicebox_asm/insn/mov.rs.html index 7be5d09..1e672a1 100644 --- a/src/juicebox_asm/insn/mov.rs.html +++ b/src/juicebox_asm/insn/mov.rs.html @@ -111,7 +111,9 @@ <a href="#111" id="111">111</a> <a href="#112" id="112">112</a> <a href="#113" id="113">113</a> -</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">crate</span>::prelude::<span class="kw-2">*</span>; +<a href="#114" id="114">114</a> +</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">super</span>::Mov; +<span class="kw">use crate</span>::{Asm, Imm16, Imm32, Imm64, Imm8, MemOp, Reg16, Reg32, Reg64, Reg8}; <span class="comment">// -- MOV : reg reg diff --git a/src/juicebox_asm/insn/nop.rs.html b/src/juicebox_asm/insn/nop.rs.html index accc13a..c3c264b 100644 --- a/src/juicebox_asm/insn/nop.rs.html +++ b/src/juicebox_asm/insn/nop.rs.html @@ -5,10 +5,12 @@ <a href="#5" id="5">5</a> <a href="#6" id="6">6</a> <a href="#7" id="7">7</a> +<a href="#8" id="8">8</a> </pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">crate</span>::Asm; <span class="kw">impl </span>Asm { - <span class="kw">pub fn </span>nop(<span class="kw-2">&mut </span><span class="self">self</span>) { + <span class="doccomment">/// Emit a [`nop`](https://www.felixcloutier.com/x86/nop) instruction. + </span><span class="kw">pub fn </span>nop(<span class="kw-2">&mut </span><span class="self">self</span>) { <span class="self">self</span>.emit(<span class="kw-2">&</span>[<span class="number">0x90</span>]); } } diff --git a/src/juicebox_asm/insn/ret.rs.html b/src/juicebox_asm/insn/ret.rs.html index 97070e8..26e3a47 100644 --- a/src/juicebox_asm/insn/ret.rs.html +++ b/src/juicebox_asm/insn/ret.rs.html @@ -5,10 +5,12 @@ <a href="#5" id="5">5</a> <a href="#6" id="6">6</a> <a href="#7" id="7">7</a> +<a href="#8" id="8">8</a> </pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">crate</span>::Asm; <span class="kw">impl </span>Asm { - <span class="kw">pub fn </span>ret(<span class="kw-2">&mut </span><span class="self">self</span>) { + <span class="doccomment">/// Emit a [`ret`](https://www.felixcloutier.com/x86/ret) instruction. + </span><span class="kw">pub fn </span>ret(<span class="kw-2">&mut </span><span class="self">self</span>) { <span class="self">self</span>.emit(<span class="kw-2">&</span>[<span class="number">0xc3</span>]); } } diff --git a/src/juicebox_asm/insn/test.rs.html b/src/juicebox_asm/insn/test.rs.html index d636920..0f1d8da 100644 --- a/src/juicebox_asm/insn/test.rs.html +++ b/src/juicebox_asm/insn/test.rs.html @@ -17,7 +17,9 @@ <a href="#17" id="17">17</a> <a href="#18" id="18">18</a> <a href="#19" id="19">19</a> -</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">crate</span>::prelude::<span class="kw-2">*</span>; +<a href="#20" id="20">20</a> +</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">super</span>::Test; +<span class="kw">use crate</span>::{Asm, Imm16, MemOp, Reg32, Reg64}; <span class="kw">impl </span>Test<Reg64, Reg64> <span class="kw">for </span>Asm { <span class="kw">fn </span>test(<span class="kw-2">&mut </span><span class="self">self</span>, op1: Reg64, op2: Reg64) { |