about summary refs log tree commit diff stats
path: root/html/subx/016index_addressing.cc.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-07-25 00:08:23 -0700
committerKartik Agaram <vc@akkartik.com>2019-07-25 00:10:56 -0700
commit695f9bf8d0a7d0a871b8ab75270ceb29715d9be3 (patch)
tree358d7fda9f7eb1714d9a7f0e0838be2bd64d336f /html/subx/016index_addressing.cc.html
parent51a20da6b30f4afe0405d13bf862b5d72ccefa6d (diff)
downloadmu-695f9bf8d0a7d0a871b8ab75270ceb29715d9be3.tar.gz
5468
Diffstat (limited to 'html/subx/016index_addressing.cc.html')
-rw-r--r--html/subx/016index_addressing.cc.html20
1 files changed, 10 insertions, 10 deletions
diff --git a/html/subx/016index_addressing.cc.html b/html/subx/016index_addressing.cc.html
index 68841882..bd2304e9 100644
--- a/html/subx/016index_addressing.cc.html
+++ b/html/subx/016index_addressing.cc.html
@@ -71,7 +71,7 @@ if ('onhashchange' in window) {
 <span id="L13" class="LineNr"> 13 </span>      <span class="Constant">&quot;== data 0x2000\n&quot;</span>
 <span id="L14" class="LineNr"> 14 </span>      <span class="Constant">&quot;01 00 00 00\n&quot;</span>  <span class="Comment">// 0x00000001</span>
 <span id="L15" class="LineNr"> 15 </span>  <span class="Delimiter">);</span>
-<span id="L16" class="LineNr"> 16 </span>  <a href='003trace.cc.html#L281'>CHECK_TRACE_CONTENTS</a><span class="Delimiter">(</span>
+<span id="L16" class="LineNr"> 16 </span>  <a href='003trace.cc.html#L290'>CHECK_TRACE_CONTENTS</a><span class="Delimiter">(</span>
 <span id="L17" class="LineNr"> 17 </span>      <span class="Constant">&quot;run: add <a href='010---vm.cc.html#L16'>EBX</a> to r/m32\n&quot;</span>
 <span id="L18" class="LineNr"> 18 </span>      <span class="Constant">&quot;run: effective address is initially 0x00002000 (EAX)\n&quot;</span>
 <span id="L19" class="LineNr"> 19 </span>      <span class="Constant">&quot;run: effective address is 0x00002000\n&quot;</span>
@@ -85,27 +85,27 @@ if ('onhashchange' in window) {
 <span id="L27" class="LineNr"> 27 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
 <span id="L28" class="LineNr"> 28 </span><span class="Delimiter">:(code)</span>
 <span id="L29" class="LineNr"> 29 </span><span class="Normal">uint32_t</span> <a href='016index_addressing.cc.html#L29'>effective_address_from_sib</a><span class="Delimiter">(</span><span class="Normal">uint8_t</span> mod<span class="Delimiter">)</span> <span class="Delimiter">{</span>
-<span id="L30" class="LineNr"> 30 </span>  <span class="Normal">const</span> <span class="Normal">uint8_t</span> sib = <a href='010---vm.cc.html#L338'>next</a><span class="Delimiter">();</span>
+<span id="L30" class="LineNr"> 30 </span>  <span class="Normal">const</span> <span class="Normal">uint8_t</span> sib = <a href='010---vm.cc.html#L339'>next</a><span class="Delimiter">();</span>
 <span id="L31" class="LineNr"> 31 </span>  <span class="Normal">const</span> <span class="Normal">uint8_t</span> base = sib&amp;<span class="Constant">0x7</span><span class="Delimiter">;</span>
 <span id="L32" class="LineNr"> 32 </span>  <span class="Normal">uint32_t</span> addr = <span class="Constant">0</span><span class="Delimiter">;</span>
 <span id="L33" class="LineNr"> 33 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>base != <a href='010---vm.cc.html#L18'>EBP</a> || mod != <span class="Constant">0</span><span class="Delimiter">)</span> <span class="Delimiter">{</span>
 <span id="L34" class="LineNr"> 34 </span>    addr = <span class="Special"><a href='010---vm.cc.html#L28'>Reg</a></span>[base]<span class="Delimiter">.</span>u<span class="Delimiter">;</span>
-<span id="L35" class="LineNr"> 35 </span>    <a href='003trace.cc.html#L96'>trace</a><span class="Delimiter">(</span><span class="Special">Callstack_depth</span>+<span class="Constant">1</span><span class="Delimiter">,</span> <span class="Constant">&quot;run&quot;</span><span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;effective address is initially 0x&quot;</span> &lt;&lt; <a href='010---vm.cc.html#L408'>HEXWORD</a> &lt;&lt; addr &lt;&lt; <span class="Constant">&quot; (&quot;</span> &lt;&lt; <a href='013direct_addressing.cc.html#L136'>rname</a><span class="Delimiter">(</span>base<span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;)&quot;</span> &lt;&lt; end<span class="Delimiter">();</span>
+<span id="L35" class="LineNr"> 35 </span>    <a href='003trace.cc.html#L96'>trace</a><span class="Delimiter">(</span><span class="Special">Callstack_depth</span>+<span class="Constant">1</span><span class="Delimiter">,</span> <span class="Constant">&quot;run&quot;</span><span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;effective address is initially 0x&quot;</span> &lt;&lt; <a href='010---vm.cc.html#L409'>HEXWORD</a> &lt;&lt; addr &lt;&lt; <span class="Constant">&quot; (&quot;</span> &lt;&lt; <a href='013direct_addressing.cc.html#L136'>rname</a><span class="Delimiter">(</span>base<span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;)&quot;</span> &lt;&lt; end<span class="Delimiter">();</span>
 <span id="L36" class="LineNr"> 36 </span>  <span class="Delimiter">}</span>
 <span id="L37" class="LineNr"> 37 </span>  <span class="Normal">else</span> <span class="Delimiter">{</span>
 <span id="L38" class="LineNr"> 38 </span>    <span class="Comment">// base == EBP &amp;&amp; mod == 0</span>
 <span id="L39" class="LineNr"> 39 </span>    addr = <a href='011run.cc.html#L432'>next32</a><span class="Delimiter">();</span>  <span class="Comment">// ignore base</span>
-<span id="L40" class="LineNr"> 40 </span>    <a href='003trace.cc.html#L96'>trace</a><span class="Delimiter">(</span><span class="Special">Callstack_depth</span>+<span class="Constant">1</span><span class="Delimiter">,</span> <span class="Constant">&quot;run&quot;</span><span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;effective address is initially 0x&quot;</span> &lt;&lt; <a href='010---vm.cc.html#L408'>HEXWORD</a> &lt;&lt; addr &lt;&lt; <span class="Constant">&quot; (disp32)&quot;</span> &lt;&lt; end<span class="Delimiter">();</span>
+<span id="L40" class="LineNr"> 40 </span>    <a href='003trace.cc.html#L96'>trace</a><span class="Delimiter">(</span><span class="Special">Callstack_depth</span>+<span class="Constant">1</span><span class="Delimiter">,</span> <span class="Constant">&quot;run&quot;</span><span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;effective address is initially 0x&quot;</span> &lt;&lt; <a href='010---vm.cc.html#L409'>HEXWORD</a> &lt;&lt; addr &lt;&lt; <span class="Constant">&quot; (disp32)&quot;</span> &lt;&lt; end<span class="Delimiter">();</span>
 <span id="L41" class="LineNr"> 41 </span>  <span class="Delimiter">}</span>
 <span id="L42" class="LineNr"> 42 </span>  <span class="Normal">const</span> <span class="Normal">uint8_t</span> index = <span class="Delimiter">(</span>sib&gt;&gt;<span class="Constant">3</span><span class="Delimiter">)</span>&amp;<span class="Constant">0x7</span><span class="Delimiter">;</span>
 <span id="L43" class="LineNr"> 43 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>index == <a href='010---vm.cc.html#L17'>ESP</a><span class="Delimiter">)</span> <span class="Delimiter">{</span>
 <span id="L44" class="LineNr"> 44 </span>    <span class="Comment">// ignore index and scale</span>
-<span id="L45" class="LineNr"> 45 </span>    <a href='003trace.cc.html#L96'>trace</a><span class="Delimiter">(</span><span class="Special">Callstack_depth</span>+<span class="Constant">1</span><span class="Delimiter">,</span> <span class="Constant">&quot;run&quot;</span><span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;effective address is 0x&quot;</span> &lt;&lt; <a href='010---vm.cc.html#L408'>HEXWORD</a> &lt;&lt; addr &lt;&lt; end<span class="Delimiter">();</span>
+<span id="L45" class="LineNr"> 45 </span>    <a href='003trace.cc.html#L96'>trace</a><span class="Delimiter">(</span><span class="Special">Callstack_depth</span>+<span class="Constant">1</span><span class="Delimiter">,</span> <span class="Constant">&quot;run&quot;</span><span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;effective address is 0x&quot;</span> &lt;&lt; <a href='010---vm.cc.html#L409'>HEXWORD</a> &lt;&lt; addr &lt;&lt; end<span class="Delimiter">();</span>
 <span id="L46" class="LineNr"> 46 </span>  <span class="Delimiter">}</span>
 <span id="L47" class="LineNr"> 47 </span>  <span class="Normal">else</span> <span class="Delimiter">{</span>
 <span id="L48" class="LineNr"> 48 </span>    <span class="Normal">const</span> <span class="Normal">uint8_t</span> scale = <span class="Delimiter">(</span><span class="Constant">1</span> &lt;&lt; <span class="Delimiter">(</span>sib&gt;&gt;<span class="Constant">6</span><span class="Delimiter">));</span>
 <span id="L49" class="LineNr"> 49 </span>    addr += <span class="Special"><a href='010---vm.cc.html#L28'>Reg</a></span>[index]<span class="Delimiter">.</span>i*scale<span class="Delimiter">;</span>  <span class="Comment">// treat index register as signed. Maybe base as well? But we'll always ensure it's non-negative.</span>
-<span id="L50" class="LineNr"> 50 </span>    <a href='003trace.cc.html#L96'>trace</a><span class="Delimiter">(</span><span class="Special">Callstack_depth</span>+<span class="Constant">1</span><span class="Delimiter">,</span> <span class="Constant">&quot;run&quot;</span><span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;effective address is 0x&quot;</span> &lt;&lt; <a href='010---vm.cc.html#L408'>HEXWORD</a> &lt;&lt; addr &lt;&lt; <span class="Constant">&quot; (after adding &quot;</span> &lt;&lt; <a href='013direct_addressing.cc.html#L136'>rname</a><span class="Delimiter">(</span>index<span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;*&quot;</span> &lt;&lt; <a href='010---vm.cc.html#L410'>NUM</a><span class="Delimiter">(</span>scale<span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;)&quot;</span> &lt;&lt; end<span class="Delimiter">();</span>
+<span id="L50" class="LineNr"> 50 </span>    <a href='003trace.cc.html#L96'>trace</a><span class="Delimiter">(</span><span class="Special">Callstack_depth</span>+<span class="Constant">1</span><span class="Delimiter">,</span> <span class="Constant">&quot;run&quot;</span><span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;effective address is 0x&quot;</span> &lt;&lt; <a href='010---vm.cc.html#L409'>HEXWORD</a> &lt;&lt; addr &lt;&lt; <span class="Constant">&quot; (after adding &quot;</span> &lt;&lt; <a href='013direct_addressing.cc.html#L136'>rname</a><span class="Delimiter">(</span>index<span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;*&quot;</span> &lt;&lt; <a href='010---vm.cc.html#L411'>NUM</a><span class="Delimiter">(</span>scale<span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;)&quot;</span> &lt;&lt; end<span class="Delimiter">();</span>
 <span id="L51" class="LineNr"> 51 </span>  <span class="Delimiter">}</span>
 <span id="L52" class="LineNr"> 52 </span>  <span class="Identifier">return</span> addr<span class="Delimiter">;</span>
 <span id="L53" class="LineNr"> 53 </span><span class="Delimiter">}</span>
@@ -124,7 +124,7 @@ if ('onhashchange' in window) {
 <span id="L66" class="LineNr"> 66 </span>      <span class="Constant">&quot;== data 0x2000\n&quot;</span>
 <span id="L67" class="LineNr"> 67 </span>      <span class="Constant">&quot;01 00 00 00\n&quot;</span>  <span class="Comment">// 0x00000001</span>
 <span id="L68" class="LineNr"> 68 </span>  <span class="Delimiter">);</span>
-<span id="L69" class="LineNr"> 69 </span>  <a href='003trace.cc.html#L281'>CHECK_TRACE_CONTENTS</a><span class="Delimiter">(</span>
+<span id="L69" class="LineNr"> 69 </span>  <a href='003trace.cc.html#L290'>CHECK_TRACE_CONTENTS</a><span class="Delimiter">(</span>
 <span id="L70" class="LineNr"> 70 </span>      <span class="Constant">&quot;run: add <a href='010---vm.cc.html#L16'>EBX</a> to r/m32\n&quot;</span>
 <span id="L71" class="LineNr"> 71 </span>      <span class="Constant">&quot;run: effective address is initially 0x00001ffe (EAX)\n&quot;</span>
 <span id="L72" class="LineNr"> 72 </span>      <span class="Constant">&quot;run: effective address is 0x00002000 (after adding ECX*1)\n&quot;</span>
@@ -144,7 +144,7 @@ if ('onhashchange' in window) {
 <span id="L86" class="LineNr"> 86 </span>      <span class="Constant">&quot;== data 0x2000\n&quot;</span>
 <span id="L87" class="LineNr"> 87 </span>      <span class="Constant">&quot;01 00 00 00\n&quot;</span>  <span class="Comment">// 0x00000001</span>
 <span id="L88" class="LineNr"> 88 </span>  <span class="Delimiter">);</span>
-<span id="L89" class="LineNr"> 89 </span>  <a href='003trace.cc.html#L281'>CHECK_TRACE_CONTENTS</a><span class="Delimiter">(</span>
+<span id="L89" class="LineNr"> 89 </span>  <a href='003trace.cc.html#L290'>CHECK_TRACE_CONTENTS</a><span class="Delimiter">(</span>
 <span id="L90" class="LineNr"> 90 </span>      <span class="Constant">&quot;run: add <a href='010---vm.cc.html#L16'>EBX</a> to r/m32\n&quot;</span>
 <span id="L91" class="LineNr"> 91 </span>      <span class="Constant">&quot;run: effective address is initially 0x00002000 (disp32)\n&quot;</span>
 <span id="L92" class="LineNr"> 92 </span>      <span class="Constant">&quot;run: effective address is 0x00002000\n&quot;</span>
@@ -168,7 +168,7 @@ if ('onhashchange' in window) {
 <span id="L110" class="LineNr">110 </span>      <span class="Constant">&quot;== data 0x2000\n&quot;</span>
 <span id="L111" class="LineNr">111 </span>      <span class="Constant">&quot;01 00 00 00\n&quot;</span>  <span class="Comment">// 0x00000001</span>
 <span id="L112" class="LineNr">112 </span>  <span class="Delimiter">);</span>
-<span id="L113" class="LineNr">113 </span>  <a href='003trace.cc.html#L281'>CHECK_TRACE_CONTENTS</a><span class="Delimiter">(</span>
+<span id="L113" class="LineNr">113 </span>  <a href='003trace.cc.html#L290'>CHECK_TRACE_CONTENTS</a><span class="Delimiter">(</span>
 <span id="L114" class="LineNr">114 </span>      <span class="Constant">&quot;run: add <a href='010---vm.cc.html#L16'>EBX</a> to r/m32\n&quot;</span>
 <span id="L115" class="LineNr">115 </span>      <span class="Constant">&quot;run: effective address is initially 0x00001ff9 (EAX)\n&quot;</span>
 <span id="L116" class="LineNr">116 </span>      <span class="Constant">&quot;run: effective address is 0x00001ffe (after adding ECX*1)\n&quot;</span>
@@ -198,7 +198,7 @@ if ('onhashchange' in window) {
 <span id="L140" class="LineNr">140 </span>      <span class="Constant">&quot;== data 0x2000\n&quot;</span>
 <span id="L141" class="LineNr">141 </span>      <span class="Constant">&quot;01 00 00 00\n&quot;</span>  <span class="Comment">// 0x00000001</span>
 <span id="L142" class="LineNr">142 </span>  <span class="Delimiter">);</span>
-<span id="L143" class="LineNr">143 </span>  <a href='003trace.cc.html#L281'>CHECK_TRACE_CONTENTS</a><span class="Delimiter">(</span>
+<span id="L143" class="LineNr">143 </span>  <a href='003trace.cc.html#L290'>CHECK_TRACE_CONTENTS</a><span class="Delimiter">(</span>
 <span id="L144" class="LineNr">144 </span>      <span class="Constant">&quot;run: add <a href='010---vm.cc.html#L16'>EBX</a> to r/m32\n&quot;</span>
 <span id="L145" class="LineNr">145 </span>      <span class="Constant">&quot;run: effective address is initially 0x00001ff9 (EAX)\n&quot;</span>
 <span id="L146" class="LineNr">146 </span>      <span class="Constant">&quot;run: effective address is 0x00001ffe (after adding ECX*1)\n&quot;</span>