about summary refs log tree commit diff stats
path: root/html/apps/factorial4.subx.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/apps/factorial4.subx.html')
-rw-r--r--html/apps/factorial4.subx.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/html/apps/factorial4.subx.html b/html/apps/factorial4.subx.html
index bd41739e..fcbde291 100644
--- a/html/apps/factorial4.subx.html
+++ b/html/apps/factorial4.subx.html
@@ -119,7 +119,7 @@ if ('onhashchange' in window) {
 <span id="L60" class="LineNr">60 </span>    55/push-ebp
 <span id="L61" class="LineNr">61 </span>    89/&lt;- %ebp 4/r32/esp
 <span id="L62" class="LineNr">62 </span>    <span class="subxComment"># save registers</span>
-<span id="L63" class="LineNr">63 </span>    53/push-ebx
+<span id="L63" class="LineNr">63 </span>    51/push-ecx
 <span id="L64" class="LineNr">64 </span>    <span class="subxComment"># if (n &lt;= 1) return 1</span>
 <span id="L65" class="LineNr">65 </span>    81 7/subop/compare *(ebp+8) 1/imm32
 <span id="L66" class="LineNr">66 </span>    {
@@ -129,14 +129,14 @@ if ('onhashchange' in window) {
 <span id="L70" class="LineNr">70 </span>    <span class="subxComment"># if (n &gt; 1) return n * factorial(n-1)</span>
 <span id="L71" class="LineNr">71 </span>    {
 <span id="L72" class="LineNr">72 </span>      7e/jump-if-&lt;= <span class="Constant">break</span>/disp8
-<span id="L73" class="LineNr">73 </span>      <span class="subxComment"># var ebx: int = n-1</span>
-<span id="L74" class="LineNr">74 </span>      8b/-&gt; *(ebp+8) 3/r32/ebx
-<span id="L75" class="LineNr">75 </span>      4b/decrement-ebx
-<span id="L76" class="LineNr">76 </span>      (<a href='factorial4.subx.html#L58'>factorial</a> %ebx)  <span class="subxComment"># =&gt; eax</span>
+<span id="L73" class="LineNr">73 </span>      <span class="subxComment"># var tmp/ecx: int = n-1</span>
+<span id="L74" class="LineNr">74 </span>      8b/-&gt; *(ebp+8) 1/r32/ecx
+<span id="L75" class="LineNr">75 </span>      49/decrement-ecx
+<span id="L76" class="LineNr">76 </span>      (<a href='factorial4.subx.html#L58'>factorial</a> %ecx)  <span class="subxComment"># =&gt; eax</span>
 <span id="L77" class="LineNr">77 </span>      f7 4/subop/multiply-into-eax *(ebp+8)
 <span id="L78" class="LineNr">78 </span>    }
 <span id="L79" class="LineNr">79 </span>    <span class="subxComment"># restore registers</span>
-<span id="L80" class="LineNr">80 </span>    5b/pop-to-ebx
+<span id="L80" class="LineNr">80 </span>    59/pop-to-ecx
 <span id="L81" class="LineNr">81 </span>    <span class="subxS1Comment"># . epilogue</span>
 <span id="L82" class="LineNr">82 </span>    89/&lt;- %esp 5/r32/ebp
 <span id="L83" class="LineNr">83 </span>    5d/pop-to-ebp