diff options
Diffstat (limited to 'html/subx/011direct_addressing.cc.html')
-rw-r--r-- | html/subx/011direct_addressing.cc.html | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/html/subx/011direct_addressing.cc.html b/html/subx/011direct_addressing.cc.html index 67117464..b8d9a853 100644 --- a/html/subx/011direct_addressing.cc.html +++ b/html/subx/011direct_addressing.cc.html @@ -214,7 +214,7 @@ if ('onhashchange' in window) { <span id="L149" class="LineNr">149 </span> <span class="Identifier">break</span><span class="Delimiter">;</span> <span id="L150" class="LineNr">150 </span><span class="Delimiter">}</span> <span id="L151" class="LineNr">151 </span> -<span id="L152" class="LineNr">152 </span><span class="SalientComment">//:: compare</span> +<span id="L152" class="LineNr">152 </span><span class="SalientComment">//:: compare (cmp)</span> <span id="L153" class="LineNr">153 </span> <span id="L154" class="LineNr">154 </span><span class="Delimiter">:(scenario compare_r32_with_r32_greater)</span> <span id="L155" class="LineNr">155 </span><span class="Special">% Reg[0].i = 0x0a0b0c0d;</span> @@ -258,6 +258,27 @@ if ('onhashchange' in window) { <span id="L193" class="LineNr">193 </span><span class="traceContains">+run: compare <a href='010core.cc.html#L15'>reg</a> 3 with effective address</span> <span id="L194" class="LineNr">194 </span><span class="traceContains">+run: effective address is <a href='010core.cc.html#L15'>reg</a> 0</span> <span id="L195" class="LineNr">195 </span><span class="traceContains">+run: SF=0; ZF=1; OF=0</span> +<span id="L196" class="LineNr">196 </span> +<span id="L197" class="LineNr">197 </span><span class="SalientComment">//:: copy (mov)</span> +<span id="L198" class="LineNr">198 </span> +<span id="L199" class="LineNr">199 </span><span class="Delimiter">:(scenario copy_r32_to_r32)</span> +<span id="L200" class="LineNr">200 </span><span class="Special">% Reg[3].i = 0xaf;</span> +<span id="L201" class="LineNr">201 </span><span class="Comment"># op ModRM SIB displacement immediate</span> +<span id="L202" class="LineNr">202 </span> <span class="Constant">89</span> d8 <span class="Comment"># copy EBX (reg 3) to EAX (reg 0)</span> +<span id="L203" class="LineNr">203 </span><span class="traceContains">+run: copy <a href='010core.cc.html#L15'>reg</a> 3 to effective address</span> +<span id="L204" class="LineNr">204 </span><span class="traceContains">+run: effective address is <a href='010core.cc.html#L15'>reg</a> 0</span> +<span id="L205" class="LineNr">205 </span><span class="traceContains">+run: storing 0x000000af</span> +<span id="L206" class="LineNr">206 </span> +<span id="L207" class="LineNr">207 </span><span class="Delimiter">:(before "End Single-Byte Opcodes")</span> +<span id="L208" class="LineNr">208 </span><span class="Normal">case</span> <span class="Constant">0x89</span>: <span class="Delimiter">{</span> <span class="Comment">// copy r32 to r/m32</span> +<span id="L209" class="LineNr">209 </span> <span class="Normal">uint8_t</span> modrm = <a href='010core.cc.html#L210'>next</a><span class="Delimiter">();</span> +<span id="L210" class="LineNr">210 </span> <span class="Normal">uint8_t</span> reg2 = <span class="Delimiter">(</span>modrm>><span class="Constant">3</span><span class="Delimiter">)</span>&<span class="Constant">0x7</span><span class="Delimiter">;</span> +<span id="L211" class="LineNr">211 </span> <a href='003trace.cc.html#L160'>trace</a><span class="Delimiter">(</span><span class="Constant">2</span><span class="Delimiter">,</span> <span class="Constant">"run"</span><span class="Delimiter">)</span> << <span class="Constant">"copy <a href='010core.cc.html#L15'>reg</a> "</span> << <a href='010core.cc.html#L228'>NUM</a><span class="Delimiter">(</span>reg2<span class="Delimiter">)</span> << <span class="Constant">" to effective address"</span> << <a href='003trace.cc.html#L184'>end</a><span class="Delimiter">();</span> +<span id="L212" class="LineNr">212 </span> <span class="Normal">int32_t</span>* arg1 = <a href='011direct_addressing.cc.html#L26'>effective_address</a><span class="Delimiter">(</span>modrm<span class="Delimiter">);</span> +<span id="L213" class="LineNr">213 </span> *arg1 = Reg[reg2]<span class="Delimiter">.</span><a href='010core.cc.html#L16'>i</a><span class="Delimiter">;</span> +<span id="L214" class="LineNr">214 </span> <a href='003trace.cc.html#L160'>trace</a><span class="Delimiter">(</span><span class="Constant">2</span><span class="Delimiter">,</span> <span class="Constant">"run"</span><span class="Delimiter">)</span> << <span class="Constant">"storing 0x"</span> << <a href='010core.cc.html#L226'>HEXWORD</a> << *arg1 << <a href='003trace.cc.html#L184'>end</a><span class="Delimiter">();</span> +<span id="L215" class="LineNr">215 </span> <span class="Identifier">break</span><span class="Delimiter">;</span> +<span id="L216" class="LineNr">216 </span><span class="Delimiter">}</span> </pre> </body> </html> |