about summary refs log tree commit diff stats
path: root/html/subx/011direct_addressing.cc.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/subx/011direct_addressing.cc.html')
-rw-r--r--html/subx/011direct_addressing.cc.html31
1 files changed, 30 insertions, 1 deletions
diff --git a/html/subx/011direct_addressing.cc.html b/html/subx/011direct_addressing.cc.html
index f9508be6..ba7a1e3b 100644
--- a/html/subx/011direct_addressing.cc.html
+++ b/html/subx/011direct_addressing.cc.html
@@ -284,7 +284,7 @@ if ('onhashchange' in window) {
 <span id="L219" class="LineNr">219 </span>
 <span id="L220" class="LineNr">220 </span><span class="Delimiter">:(scenario push_r32)</span>
 <span id="L221" class="LineNr">221 </span><span class="Special">% Reg[ESP].u = 0x64;</span>
-<span id="L222" class="LineNr">222 </span><span class="Special">% Reg[EBX].i = 10;</span>
+<span id="L222" class="LineNr">222 </span><span class="Special">% Reg[EBX].i = 0x0000000a;</span>
 <span id="L223" class="LineNr">223 </span><span class="Comment"># op  ModRM   SIB   displacement  immediate</span>
 <span id="L224" class="LineNr">224 </span>  <span class="Constant">53</span>                                          <span class="Comment"># push EBX (reg 3) to stack</span>
 <span id="L225" class="LineNr">225 </span><span class="traceContains">+run: push <a href='010core.cc.html#L17'>reg</a> 3</span>
@@ -311,6 +311,35 @@ if ('onhashchange' in window) {
 <span id="L246" class="LineNr">246 </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">&quot;run&quot;</span><span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;contents at <a href='010core.cc.html#L11'>ESP</a>: 0x&quot;</span> &lt;&lt; <a href='010core.cc.html#L230'>HEXWORD</a> &lt;&lt; *<span class="Normal">reinterpret_cast</span>&lt;<span class="Normal">uint32_t</span>*&gt;<span class="Delimiter">(</span>&amp;Mem<span class="Delimiter">.</span>at<span class="Delimiter">(</span>Reg[ESP]<span class="Delimiter">.</span>u<span class="Delimiter">))</span> &lt;&lt; <a href='003trace.cc.html#L184'>end</a><span class="Delimiter">();</span>
 <span id="L247" class="LineNr">247 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
 <span id="L248" class="LineNr">248 </span><span class="Delimiter">}</span>
+<span id="L249" class="LineNr">249 </span>
+<span id="L250" class="LineNr">250 </span><span class="SalientComment">//:: pop</span>
+<span id="L251" class="LineNr">251 </span>
+<span id="L252" class="LineNr">252 </span><span class="Delimiter">:(scenario pop_r32)</span>
+<span id="L253" class="LineNr">253 </span><span class="Special">% Reg[ESP].u = 0x60;</span>
+<span id="L254" class="LineNr">254 </span><span class="Special">% SET_WORD_IN_MEM(0x60, 0x0000000a);</span>
+<span id="L255" class="LineNr">255 </span><span class="Comment"># op  ModRM   SIB   displacement  immediate</span>
+<span id="L256" class="LineNr">256 </span>  5b                                          <span class="Comment"># pop stack to EBX (reg 3)</span>
+<span id="L257" class="LineNr">257 </span><span class="traceContains">+run: pop into <a href='010core.cc.html#L17'>reg</a> 3</span>
+<span id="L258" class="LineNr">258 </span><span class="traceContains">+run: popping value 0x0000000a</span>
+<span id="L259" class="LineNr">259 </span><span class="traceContains">+run: <a href='010core.cc.html#L11'>ESP</a> is now 0x00000064</span>
+<span id="L260" class="LineNr">260 </span>
+<span id="L261" class="LineNr">261 </span><span class="Delimiter">:(before &quot;End Single-Byte Opcodes&quot;)</span>
+<span id="L262" class="LineNr">262 </span><span class="Normal">case</span> <span class="Constant">0x58</span>:
+<span id="L263" class="LineNr">263 </span><span class="Normal">case</span> <span class="Constant">0x59</span>:
+<span id="L264" class="LineNr">264 </span><span class="Normal">case</span> <span class="Constant">0x5a</span>:
+<span id="L265" class="LineNr">265 </span><span class="Normal">case</span> <span class="Constant">0x5b</span>:
+<span id="L266" class="LineNr">266 </span><span class="Normal">case</span> <span class="Constant">0x5c</span>:
+<span id="L267" class="LineNr">267 </span><span class="Normal">case</span> <span class="Constant">0x5d</span>:
+<span id="L268" class="LineNr">268 </span><span class="Normal">case</span> <span class="Constant">0x5e</span>:
+<span id="L269" class="LineNr">269 </span><span class="Normal">case</span> <span class="Constant">0x5f</span>: <span class="Delimiter">{</span>  <span class="Comment">// pop stack into r32</span>
+<span id="L270" class="LineNr">270 </span>  <span class="Normal">uint8_t</span> <a href='010core.cc.html#L17'>reg</a> = op &amp; <span class="Constant">0x7</span><span class="Delimiter">;</span>
+<span id="L271" class="LineNr">271 </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">&quot;run&quot;</span><span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;pop into <a href='010core.cc.html#L17'>reg</a> &quot;</span> &lt;&lt; <a href='010core.cc.html#L232'>NUM</a><span class="Delimiter">(</span><a href='010core.cc.html#L17'>reg</a><span class="Delimiter">)</span> &lt;&lt; <a href='003trace.cc.html#L184'>end</a><span class="Delimiter">();</span>
+<span id="L272" class="LineNr">272 </span>  Reg[reg]<span class="Delimiter">.</span>u = *<span class="Normal">reinterpret_cast</span>&lt;<span class="Normal">uint32_t</span>*&gt;<span class="Delimiter">(</span>&amp;Mem<span class="Delimiter">.</span>at<span class="Delimiter">(</span>Reg[ESP]<span class="Delimiter">.</span>u<span class="Delimiter">));</span>
+<span id="L273" class="LineNr">273 </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">&quot;run&quot;</span><span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;popping value 0x&quot;</span> &lt;&lt; <a href='010core.cc.html#L230'>HEXWORD</a> &lt;&lt; Reg[reg]<span class="Delimiter">.</span>u &lt;&lt; <a href='003trace.cc.html#L184'>end</a><span class="Delimiter">();</span>
+<span id="L274" class="LineNr">274 </span>  Reg[ESP]<span class="Delimiter">.</span>u += <span class="Constant">4</span><span class="Delimiter">;</span>
+<span id="L275" class="LineNr">275 </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">&quot;run&quot;</span><span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;ESP is now 0x&quot;</span> &lt;&lt; <a href='010core.cc.html#L230'>HEXWORD</a> &lt;&lt; Reg[ESP]<span class="Delimiter">.</span>u &lt;&lt; <a href='003trace.cc.html#L184'>end</a><span class="Delimiter">();</span>
+<span id="L276" class="LineNr">276 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
+<span id="L277" class="LineNr">277 </span><span class="Delimiter">}</span>
 </pre>
 </body>
 </html>