aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/juicebox_asm/insn/mov.rs.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/juicebox_asm/insn/mov.rs.html')
-rw-r--r--src/juicebox_asm/insn/mov.rs.html38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/juicebox_asm/insn/mov.rs.html b/src/juicebox_asm/insn/mov.rs.html
index 5bd4111..ab91c85 100644
--- a/src/juicebox_asm/insn/mov.rs.html
+++ b/src/juicebox_asm/insn/mov.rs.html
@@ -113,7 +113,7 @@
<a href="#112" id="112">112</a>
<a href="#113" id="113">113</a>
<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="kw">use crate</span>::{Asm, Imm16, Imm32, Imm64, Imm8, Mem16, Mem32, Mem64, Mem8, Reg16, Reg32, Reg64, Reg8};
<span class="comment">// -- MOV : reg reg
@@ -143,52 +143,52 @@
<span class="comment">// -- MOV : mem reg
-</span><span class="kw">impl </span>Mov&lt;MemOp, Reg64&gt; <span class="kw">for </span>Asm {
- <span class="kw">fn </span>mov(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: MemOp, op2: Reg64) {
+</span><span class="kw">impl </span>Mov&lt;Mem64, Reg64&gt; <span class="kw">for </span>Asm {
+ <span class="kw">fn </span>mov(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: Mem64, op2: Reg64) {
<span class="self">self</span>.encode_mr(<span class="number">0x89</span>, op1, op2);
}
}
-<span class="kw">impl </span>Mov&lt;MemOp, Reg32&gt; <span class="kw">for </span>Asm {
- <span class="kw">fn </span>mov(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: MemOp, op2: Reg32) {
+<span class="kw">impl </span>Mov&lt;Mem32, Reg32&gt; <span class="kw">for </span>Asm {
+ <span class="kw">fn </span>mov(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: Mem32, op2: Reg32) {
<span class="self">self</span>.encode_mr(<span class="number">0x89</span>, op1, op2);
}
}
-<span class="kw">impl </span>Mov&lt;MemOp, Reg16&gt; <span class="kw">for </span>Asm {
- <span class="kw">fn </span>mov(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: MemOp, op2: Reg16) {
+<span class="kw">impl </span>Mov&lt;Mem16, Reg16&gt; <span class="kw">for </span>Asm {
+ <span class="kw">fn </span>mov(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: Mem16, op2: Reg16) {
<span class="self">self</span>.encode_mr(<span class="number">0x89</span>, op1, op2);
}
}
-<span class="kw">impl </span>Mov&lt;MemOp, Reg8&gt; <span class="kw">for </span>Asm {
- <span class="kw">fn </span>mov(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: MemOp, op2: Reg8) {
+<span class="kw">impl </span>Mov&lt;Mem8, Reg8&gt; <span class="kw">for </span>Asm {
+ <span class="kw">fn </span>mov(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: Mem8, op2: Reg8) {
<span class="self">self</span>.encode_mr(<span class="number">0x88</span>, op1, op2);
}
}
<span class="comment">// -- MOV : reg mem
-</span><span class="kw">impl </span>Mov&lt;Reg64, MemOp&gt; <span class="kw">for </span>Asm {
- <span class="kw">fn </span>mov(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: Reg64, op2: MemOp) {
+</span><span class="kw">impl </span>Mov&lt;Reg64, Mem64&gt; <span class="kw">for </span>Asm {
+ <span class="kw">fn </span>mov(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: Reg64, op2: Mem64) {
<span class="self">self</span>.encode_rm(<span class="number">0x8b</span>, op1, op2);
}
}
-<span class="kw">impl </span>Mov&lt;Reg32, MemOp&gt; <span class="kw">for </span>Asm {
- <span class="kw">fn </span>mov(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: Reg32, op2: MemOp) {
+<span class="kw">impl </span>Mov&lt;Reg32, Mem32&gt; <span class="kw">for </span>Asm {
+ <span class="kw">fn </span>mov(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: Reg32, op2: Mem32) {
<span class="self">self</span>.encode_rm(<span class="number">0x8b</span>, op1, op2);
}
}
-<span class="kw">impl </span>Mov&lt;Reg16, MemOp&gt; <span class="kw">for </span>Asm {
- <span class="kw">fn </span>mov(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: Reg16, op2: MemOp) {
+<span class="kw">impl </span>Mov&lt;Reg16, Mem16&gt; <span class="kw">for </span>Asm {
+ <span class="kw">fn </span>mov(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: Reg16, op2: Mem16) {
<span class="self">self</span>.encode_rm(<span class="number">0x8b</span>, op1, op2);
}
}
-<span class="kw">impl </span>Mov&lt;Reg8, MemOp&gt; <span class="kw">for </span>Asm {
- <span class="kw">fn </span>mov(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: Reg8, op2: MemOp) {
+<span class="kw">impl </span>Mov&lt;Reg8, Mem8&gt; <span class="kw">for </span>Asm {
+ <span class="kw">fn </span>mov(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: Reg8, op2: Mem8) {
<span class="self">self</span>.encode_rm(<span class="number">0x8a</span>, op1, op2);
}
}
@@ -221,8 +221,8 @@
<span class="comment">// -- MOV : mem imm
-</span><span class="kw">impl </span>Mov&lt;MemOp, Imm16&gt; <span class="kw">for </span>Asm {
- <span class="kw">fn </span>mov(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: MemOp, op2: Imm16) {
+</span><span class="kw">impl </span>Mov&lt;Mem16, Imm16&gt; <span class="kw">for </span>Asm {
+ <span class="kw">fn </span>mov(<span class="kw-2">&amp;mut </span><span class="self">self</span>, op1: Mem16, op2: Imm16) {
<span class="self">self</span>.encode_mi(<span class="number">0xc7</span>, <span class="number">0</span>, op1, op2);
}
}