diff options
author | johannst <johannst@users.noreply.github.com> | 2024-12-13 00:18:53 +0000 |
---|---|---|
committer | johannst <johannst@users.noreply.github.com> | 2024-12-13 00:18:53 +0000 |
commit | c94a65c993f5da6a86bd1e6d23e359ba2052f836 (patch) | |
tree | 8ca23ecd01fb4cd26c958e310c3f352cc7c73d63 /src/juicebox_asm/insn/mov.rs.html | |
parent | 741d915aed07eb4ea265d8e90cf64e8ca6552ddc (diff) | |
download | juicebox-asm-c94a65c993f5da6a86bd1e6d23e359ba2052f836.tar.gz juicebox-asm-c94a65c993f5da6a86bd1e6d23e359ba2052f836.zip |
deploy: 758f014afb8ec5c20ef2fc862fc12e80f65d3d25
Diffstat (limited to 'src/juicebox_asm/insn/mov.rs.html')
-rw-r--r-- | src/juicebox_asm/insn/mov.rs.html | 38 |
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<MemOp, Reg64> <span class="kw">for </span>Asm { - <span class="kw">fn </span>mov(<span class="kw-2">&mut </span><span class="self">self</span>, op1: MemOp, op2: Reg64) { +</span><span class="kw">impl </span>Mov<Mem64, Reg64> <span class="kw">for </span>Asm { + <span class="kw">fn </span>mov(<span class="kw-2">&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<MemOp, Reg32> <span class="kw">for </span>Asm { - <span class="kw">fn </span>mov(<span class="kw-2">&mut </span><span class="self">self</span>, op1: MemOp, op2: Reg32) { +<span class="kw">impl </span>Mov<Mem32, Reg32> <span class="kw">for </span>Asm { + <span class="kw">fn </span>mov(<span class="kw-2">&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<MemOp, Reg16> <span class="kw">for </span>Asm { - <span class="kw">fn </span>mov(<span class="kw-2">&mut </span><span class="self">self</span>, op1: MemOp, op2: Reg16) { +<span class="kw">impl </span>Mov<Mem16, Reg16> <span class="kw">for </span>Asm { + <span class="kw">fn </span>mov(<span class="kw-2">&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<MemOp, Reg8> <span class="kw">for </span>Asm { - <span class="kw">fn </span>mov(<span class="kw-2">&mut </span><span class="self">self</span>, op1: MemOp, op2: Reg8) { +<span class="kw">impl </span>Mov<Mem8, Reg8> <span class="kw">for </span>Asm { + <span class="kw">fn </span>mov(<span class="kw-2">&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<Reg64, MemOp> <span class="kw">for </span>Asm { - <span class="kw">fn </span>mov(<span class="kw-2">&mut </span><span class="self">self</span>, op1: Reg64, op2: MemOp) { +</span><span class="kw">impl </span>Mov<Reg64, Mem64> <span class="kw">for </span>Asm { + <span class="kw">fn </span>mov(<span class="kw-2">&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<Reg32, MemOp> <span class="kw">for </span>Asm { - <span class="kw">fn </span>mov(<span class="kw-2">&mut </span><span class="self">self</span>, op1: Reg32, op2: MemOp) { +<span class="kw">impl </span>Mov<Reg32, Mem32> <span class="kw">for </span>Asm { + <span class="kw">fn </span>mov(<span class="kw-2">&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<Reg16, MemOp> <span class="kw">for </span>Asm { - <span class="kw">fn </span>mov(<span class="kw-2">&mut </span><span class="self">self</span>, op1: Reg16, op2: MemOp) { +<span class="kw">impl </span>Mov<Reg16, Mem16> <span class="kw">for </span>Asm { + <span class="kw">fn </span>mov(<span class="kw-2">&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<Reg8, MemOp> <span class="kw">for </span>Asm { - <span class="kw">fn </span>mov(<span class="kw-2">&mut </span><span class="self">self</span>, op1: Reg8, op2: MemOp) { +<span class="kw">impl </span>Mov<Reg8, Mem8> <span class="kw">for </span>Asm { + <span class="kw">fn </span>mov(<span class="kw-2">&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<MemOp, Imm16> <span class="kw">for </span>Asm { - <span class="kw">fn </span>mov(<span class="kw-2">&mut </span><span class="self">self</span>, op1: MemOp, op2: Imm16) { +</span><span class="kw">impl </span>Mov<Mem16, Imm16> <span class="kw">for </span>Asm { + <span class="kw">fn </span>mov(<span class="kw-2">&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); } } |