about summary refs log tree commit diff stats
path: root/html/subx/013immediate_addressing.cc.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/subx/013immediate_addressing.cc.html')
-rw-r--r--html/subx/013immediate_addressing.cc.html71
1 files changed, 12 insertions, 59 deletions
diff --git a/html/subx/013immediate_addressing.cc.html b/html/subx/013immediate_addressing.cc.html
index 8b5be4ba..bb9e6ea8 100644
--- a/html/subx/013immediate_addressing.cc.html
+++ b/html/subx/013immediate_addressing.cc.html
@@ -15,20 +15,19 @@ body { font-size: 12pt; font-family: monospace; color: #aaaaaa; background-color
 a { color:#eeeeee; text-decoration: none; }
 a:hover { text-decoration: underline; }
 * { font-size: 12pt; font-size: 1em; }
-.SalientComment { color: #00ffff; }
-.LineNr { color: #444444; }
-.traceContains { color: #008000; }
-.traceAbsent { color: #c00000; }
-.Delimiter { color: #800080; }
-.Normal { color: #aaaaaa; background-color: #080808; padding-bottom: 1px; }
-.cSpecial { color: #008000; }
+.Constant { color: #00a0a0; }
+.Special { color: #c00000; }
 .Conceal { color: #4e4e4e; }
+.SalientComment { color: #00ffff; }
 .Comment { color: #9090ff; }
 .Comment a { color:#0000ee; text-decoration:underline; }
-.Constant { color: #00a0a0; }
-.Special { color: #c00000; }
+.Delimiter { color: #800080; }
+.LineNr { color: #444444; }
 .Identifier { color: #c0a020; }
+.Normal { color: #aaaaaa; background-color: #080808; padding-bottom: 1px; }
 .PreProc { color: #800080; }
+.cSpecial { color: #008000; }
+.traceContains { color: #008000; }
 -->
 </style>
 
@@ -310,10 +309,10 @@ if ('onhashchange' in window) {
 <span id="L245" class="LineNr">245 </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;compare <a href='010core.cc.html#L15'>reg</a> <a href='010core.cc.html#L5'>EAX</a> and <a href='010core.cc.html#L217'>imm32</a> 0x&quot;</span> &lt;&lt; <a href='010core.cc.html#L228'>HEXWORD</a> &lt;&lt; arg2 &lt;&lt; <a href='003trace.cc.html#L184'>end</a><span class="Delimiter">();</span>
 <span id="L246" class="LineNr">246 </span>  <span class="Normal">int32_t</span> tmp1 = arg1 - arg2<span class="Delimiter">;</span>
 <span id="L247" class="LineNr">247 </span>  SF = <span class="Delimiter">(</span>tmp1 &lt; <span class="Constant">0</span><span class="Delimiter">);</span>
-<span id="L248" class="LineNr">248 </span>  <a href='010core.cc.html#L30'>ZF</a> = <span class="Delimiter">(</span>tmp1 == <span class="Constant">0</span><span class="Delimiter">);</span>
+<span id="L248" class="LineNr">248 </span>  ZF = <span class="Delimiter">(</span>tmp1 == <span class="Constant">0</span><span class="Delimiter">);</span>
 <span id="L249" class="LineNr">249 </span>  <span class="Normal">int64_t</span> tmp2 = arg1 - arg2<span class="Delimiter">;</span>
 <span id="L250" class="LineNr">250 </span>  <a href='010core.cc.html#L31'>OF</a> = <span class="Delimiter">(</span>tmp1 != tmp2<span class="Delimiter">);</span>
-<span id="L251" class="LineNr">251 </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;SF=&quot;</span> &lt;&lt; SF &lt;&lt; <span class="Constant">&quot;; ZF=&quot;</span> &lt;&lt; <a href='010core.cc.html#L30'>ZF</a> &lt;&lt; <span class="Constant">&quot;; OF=&quot;</span> &lt;&lt; <a href='010core.cc.html#L31'>OF</a> &lt;&lt; <a href='003trace.cc.html#L184'>end</a><span class="Delimiter">();</span>
+<span id="L251" class="LineNr">251 </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;SF=&quot;</span> &lt;&lt; SF &lt;&lt; <span class="Constant">&quot;; ZF=&quot;</span> &lt;&lt; ZF &lt;&lt; <span class="Constant">&quot;; OF=&quot;</span> &lt;&lt; <a href='010core.cc.html#L31'>OF</a> &lt;&lt; <a href='003trace.cc.html#L184'>end</a><span class="Delimiter">();</span>
 <span id="L252" class="LineNr">252 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
 <span id="L253" class="LineNr">253 </span><span class="Delimiter">}</span>
 <span id="L254" class="LineNr">254 </span>
@@ -346,10 +345,10 @@ if ('onhashchange' in window) {
 <span id="L281" class="LineNr">281 </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;subop compare&quot;</span> &lt;&lt; <a href='003trace.cc.html#L184'>end</a><span class="Delimiter">();</span>
 <span id="L282" class="LineNr">282 </span>  <span class="Normal">int32_t</span> tmp1 = *arg1 - arg2<span class="Delimiter">;</span>
 <span id="L283" class="LineNr">283 </span>  SF = <span class="Delimiter">(</span>tmp1 &lt; <span class="Constant">0</span><span class="Delimiter">);</span>
-<span id="L284" class="LineNr">284 </span>  <a href='010core.cc.html#L30'>ZF</a> = <span class="Delimiter">(</span>tmp1 == <span class="Constant">0</span><span class="Delimiter">);</span>
+<span id="L284" class="LineNr">284 </span>  ZF = <span class="Delimiter">(</span>tmp1 == <span class="Constant">0</span><span class="Delimiter">);</span>
 <span id="L285" class="LineNr">285 </span>  <span class="Normal">int64_t</span> tmp2 = *arg1 - arg2<span class="Delimiter">;</span>
 <span id="L286" class="LineNr">286 </span>  <a href='010core.cc.html#L31'>OF</a> = <span class="Delimiter">(</span>tmp1 != tmp2<span class="Delimiter">);</span>
-<span id="L287" class="LineNr">287 </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;SF=&quot;</span> &lt;&lt; SF &lt;&lt; <span class="Constant">&quot;; ZF=&quot;</span> &lt;&lt; <a href='010core.cc.html#L30'>ZF</a> &lt;&lt; <span class="Constant">&quot;; OF=&quot;</span> &lt;&lt; <a href='010core.cc.html#L31'>OF</a> &lt;&lt; <a href='003trace.cc.html#L184'>end</a><span class="Delimiter">();</span>
+<span id="L287" class="LineNr">287 </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;SF=&quot;</span> &lt;&lt; SF &lt;&lt; <span class="Constant">&quot;; ZF=&quot;</span> &lt;&lt; ZF &lt;&lt; <span class="Constant">&quot;; OF=&quot;</span> &lt;&lt; <a href='010core.cc.html#L31'>OF</a> &lt;&lt; <a href='003trace.cc.html#L184'>end</a><span class="Delimiter">();</span>
 <span id="L288" class="LineNr">288 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
 <span id="L289" class="LineNr">289 </span><span class="Delimiter">}</span>
 <span id="L290" class="LineNr">290 </span>
@@ -431,52 +430,6 @@ if ('onhashchange' in window) {
 <span id="L366" class="LineNr">366 </span>  *arg1 = arg2<span class="Delimiter">;</span>
 <span id="L367" class="LineNr">367 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
 <span id="L368" class="LineNr">368 </span><span class="Delimiter">}</span>
-<span id="L369" class="LineNr">369 </span>
-<span id="L370" class="LineNr">370 </span><span class="SalientComment">//:: jump</span>
-<span id="L371" class="LineNr">371 </span>
-<span id="L372" class="LineNr">372 </span><span class="Delimiter">:(scenario jump_rel8)</span>
-<span id="L373" class="LineNr">373 </span><span class="Comment"># op  ModRM   SIB   displacement  immediate</span>
-<span id="L374" class="LineNr">374 </span>  eb                <span class="PreProc">0</span><span class="Constant">5</span>                        <span class="Comment"># skip 1 instruction</span>
-<span id="L375" class="LineNr">375 </span>  <span class="PreProc">0</span><span class="Constant">5</span>                              <span class="PreProc">0</span><span class="Constant">0</span> <span class="PreProc">0</span><span class="Constant">0</span> <span class="PreProc">0</span><span class="Constant">0</span> <span class="PreProc">0</span><span class="Constant">1</span>
-<span id="L376" class="LineNr">376 </span>  <span class="PreProc">0</span><span class="Constant">5</span>                              <span class="PreProc">0</span><span class="Constant">0</span> <span class="PreProc">0</span><span class="Constant">0</span> <span class="PreProc">0</span><span class="Constant">0</span> <span class="PreProc">0</span><span class="Constant">2</span>
-<span id="L377" class="LineNr">377 </span><span class="traceContains">+run: inst: 0x00000001</span>
-<span id="L378" class="LineNr">378 </span><span class="traceContains">+run: jump 5</span>
-<span id="L379" class="LineNr">379 </span><span class="traceContains">+run: inst: 0x00000008</span>
-<span id="L380" class="LineNr">380 </span><span class="traceAbsent">-run: inst: 0x00000003</span>
-<span id="L381" class="LineNr">381 </span>
-<span id="L382" class="LineNr">382 </span><span class="Delimiter">:(before &quot;End Single-Byte Opcodes&quot;)</span>
-<span id="L383" class="LineNr">383 </span><span class="Normal">case</span> <span class="Constant">0xeb</span>: <span class="Delimiter">{</span>  <span class="Comment">// jump rel8</span>
-<span id="L384" class="LineNr">384 </span>  <span class="Normal">int8_t</span> offset = <span class="Normal">static_cast</span>&lt;<span class="Normal">int</span>&gt;<span class="Delimiter">(</span><a href='010core.cc.html#L212'>next</a><span class="Delimiter">());</span>
-<span id="L385" class="LineNr">385 </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;jump &quot;</span> &lt;&lt; <a href='010core.cc.html#L230'>NUM</a><span class="Delimiter">(</span>offset<span class="Delimiter">)</span> &lt;&lt; <a href='003trace.cc.html#L184'>end</a><span class="Delimiter">();</span>
-<span id="L386" class="LineNr">386 </span>  <a href='010core.cc.html#L21'>EIP</a> += offset<span class="Delimiter">;</span>
-<span id="L387" class="LineNr">387 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
-<span id="L388" class="LineNr">388 </span><span class="Delimiter">}</span>
-<span id="L389" class="LineNr">389 </span>
-<span id="L390" class="LineNr">390 </span><span class="Comment">//:</span>
-<span id="L391" class="LineNr">391 </span>
-<span id="L392" class="LineNr">392 </span><span class="Delimiter">:(scenario jump_rel16)</span>
-<span id="L393" class="LineNr">393 </span><span class="Comment"># op  ModRM   SIB   displacement  immediate</span>
-<span id="L394" class="LineNr">394 </span>  e9                <span class="PreProc">0</span><span class="Constant">5</span> <span class="PreProc">0</span><span class="Constant">0</span>                     <span class="Comment"># skip 1 instruction</span>
-<span id="L395" class="LineNr">395 </span>  <span class="PreProc">0</span><span class="Constant">5</span>                              <span class="PreProc">0</span><span class="Constant">0</span> <span class="PreProc">0</span><span class="Constant">0</span> <span class="PreProc">0</span><span class="Constant">0</span> <span class="PreProc">0</span><span class="Constant">1</span>
-<span id="L396" class="LineNr">396 </span>  <span class="PreProc">0</span><span class="Constant">5</span>                              <span class="PreProc">0</span><span class="Constant">0</span> <span class="PreProc">0</span><span class="Constant">0</span> <span class="PreProc">0</span><span class="Constant">0</span> <span class="PreProc">0</span><span class="Constant">2</span>
-<span id="L397" class="LineNr">397 </span><span class="traceContains">+run: inst: 0x00000001</span>
-<span id="L398" class="LineNr">398 </span><span class="traceContains">+run: jump 5</span>
-<span id="L399" class="LineNr">399 </span><span class="traceContains">+run: inst: 0x00000009</span>
-<span id="L400" class="LineNr">400 </span><span class="traceAbsent">-run: inst: 0x00000003</span>
-<span id="L401" class="LineNr">401 </span>
-<span id="L402" class="LineNr">402 </span><span class="Delimiter">:(before &quot;End Single-Byte Opcodes&quot;)</span>
-<span id="L403" class="LineNr">403 </span><span class="Normal">case</span> <span class="Constant">0xe9</span>: <span class="Delimiter">{</span>  <span class="Comment">// jump rel8</span>
-<span id="L404" class="LineNr">404 </span>  <span class="Normal">int16_t</span> offset = <a href='013immediate_addressing.cc.html#L410'>imm16</a><span class="Delimiter">();</span>
-<span id="L405" class="LineNr">405 </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;jump &quot;</span> &lt;&lt; offset &lt;&lt; <a href='003trace.cc.html#L184'>end</a><span class="Delimiter">();</span>
-<span id="L406" class="LineNr">406 </span>  <a href='010core.cc.html#L21'>EIP</a> += offset<span class="Delimiter">;</span>
-<span id="L407" class="LineNr">407 </span>  <span class="Identifier">break</span><span class="Delimiter">;</span>
-<span id="L408" class="LineNr">408 </span><span class="Delimiter">}</span>
-<span id="L409" class="LineNr">409 </span><span class="Delimiter">:(code)</span>
-<span id="L410" class="LineNr">410 </span><span class="Normal">int16_t</span> <a href='013immediate_addressing.cc.html#L410'>imm16</a><span class="Delimiter">()</span> <span class="Delimiter">{</span>
-<span id="L411" class="LineNr">411 </span>  <span class="Normal">int16_t</span> result = <a href='010core.cc.html#L212'>next</a><span class="Delimiter">();</span>
-<span id="L412" class="LineNr">412 </span>  result |= <span class="Delimiter">(</span><a href='010core.cc.html#L212'>next</a><span class="Delimiter">()</span>&lt;&lt;<span class="Constant">8</span><span class="Delimiter">);</span>
-<span id="L413" class="LineNr">413 </span>  <span class="Identifier">return</span> result<span class="Delimiter">;</span>
-<span id="L414" class="LineNr">414 </span><span class="Delimiter">}</span>
 </pre>
 </body>
 </html>