about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xapps/factorialbin41376 -> 41371 bytes
-rw-r--r--apps/factorial.subx2
-rw-r--r--html/apps/factorial.subx.html2
3 files changed, 2 insertions, 2 deletions
diff --git a/apps/factorial b/apps/factorial
index e3e02af5..f23fdd0f 100755
--- a/apps/factorial
+++ b/apps/factorial
Binary files differdiff --git a/apps/factorial.subx b/apps/factorial.subx
index ef2262ec..66fc4be0 100644
--- a/apps/factorial.subx
+++ b/apps/factorial.subx
@@ -79,7 +79,7 @@ factorial:  # n : int -> int/eax
     7e/jump-if-<=  $factorial:end/disp8
     # ebx = n-1
     8b/copy                         1/mod/*+disp8   5/rm32/ebp    .           .                         3/r32/ebx   8/disp8         .                 # copy *(ebp+8) to ebx
-    81          5/subop/subtract    3/mod/direct    3/rm32/ebx    .           .             .           .           .               1/imm32           # subtract from ebx
+    4b/decrement-ebx
     # eax = factorial(n-1)
     # . . push args
     53/push-ebx
diff --git a/html/apps/factorial.subx.html b/html/apps/factorial.subx.html
index 4d1cbc5c..a8fd5299 100644
--- a/html/apps/factorial.subx.html
+++ b/html/apps/factorial.subx.html
@@ -140,7 +140,7 @@ if ('onhashchange' in window) {
 <span id="L79" class="LineNr"> 79 </span>    7e/jump-if-&lt;=  $factorial:end/disp8
 <span id="L80" class="LineNr"> 80 </span>    <span class="subxComment"># ebx = n-1</span>
 <span id="L81" class="LineNr"> 81 </span>    8b/copy                         1/mod/*+disp8   5/rm32/ebp   <span class="Normal"> . </span>         <span class="Normal"> . </span>                        3/r32/ebx   8/disp8        <span class="Normal"> . </span>                <span class="subxComment"># copy *(ebp+8) to ebx</span>
-<span id="L82" class="LineNr"> 82 </span>    81          5/subop/subtract    3/mod/direct    3/rm32/ebx   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              1/imm32           <span class="subxComment"># subtract from ebx</span>
+<span id="L82" class="LineNr"> 82 </span>    4b/decrement-ebx
 <span id="L83" class="LineNr"> 83 </span>    <span class="subxComment"># eax = factorial(n-1)</span>
 <span id="L84" class="LineNr"> 84 </span>    <span class="subxS2Comment"># . . push args</span>
 <span id="L85" class="LineNr"> 85 </span>    53/push-ebx