about summary refs log tree commit diff stats
path: root/html/apps/factorial.subx.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-01-16 18:31:12 -0800
committerKartik Agaram <vc@akkartik.com>2020-01-16 18:31:12 -0800
commit6070c23e5e1c60d3bb169e43bddfa59b1d322427 (patch)
tree9a70e378c33c15e4779cf94abda8f37c35a5d1da /html/apps/factorial.subx.html
parent5a6601aba973ba1d1ef30b7b64438c25623b89c5 (diff)
downloadmu-6070c23e5e1c60d3bb169e43bddfa59b1d322427.tar.gz
5897 - rename comparison instructions
Signed and unsigned don't quite capture the essence of what the different
combinations of x86 flags are doing for SubX. The crucial distinction is
that one set of comparison operators is for integers and the second is
for addresses.
Diffstat (limited to 'html/apps/factorial.subx.html')
-rw-r--r--html/apps/factorial.subx.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/html/apps/factorial.subx.html b/html/apps/factorial.subx.html
index 026f22e2..5aa74fc5 100644
--- a/html/apps/factorial.subx.html
+++ b/html/apps/factorial.subx.html
@@ -96,7 +96,7 @@ if ('onhashchange' in window) {
 <span id="L35" class="LineNr"> 35 </span>    <span class="subxH1Comment"># - if argc &gt; 1 and argv[1] == &quot;test&quot;, then return run_tests()</span>
 <span id="L36" class="LineNr"> 36 </span>    <span class="subxComment"># if (argc &lt;= 1) goto run-main</span>
 <span id="L37" class="LineNr"> 37 </span>    81          7/subop/compare     1/mod/*+disp8   5/rm32/ebp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>          0/disp8         1/imm32           <span class="subxComment"># compare *ebp</span>
-<span id="L38" class="LineNr"> 38 </span>    7e/jump-if-lesser-or-equal  $run-main/disp8
+<span id="L38" class="LineNr"> 38 </span>    7e/jump-if-&lt;=  $run-main/disp8
 <span id="L39" class="LineNr"> 39 </span>    <span class="subxComment"># if (!kernel-string-equal?(argv[1], &quot;test&quot;)) goto run-main</span>
 <span id="L40" class="LineNr"> 40 </span>    <span class="subxS1Comment"># . eax = kernel-string-equal?(argv[1], &quot;test&quot;)</span>
 <span id="L41" class="LineNr"> 41 </span>    <span class="subxS2Comment"># . . push args</span>
@@ -108,7 +108,7 @@ if ('onhashchange' in window) {
 <span id="L47" class="LineNr"> 47 </span>    81          0/subop/add         3/mod/direct    4/rm32/esp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              8/imm32           <span class="subxComment"># add to esp</span>
 <span id="L48" class="LineNr"> 48 </span>    <span class="subxS1Comment"># . if (eax == false) goto run-main</span>
 <span id="L49" class="LineNr"> 49 </span>    3d/compare-eax-and  0/imm32/false
-<span id="L50" class="LineNr"> 50 </span>    74/jump-if-equal  $run-main/disp8
+<span id="L50" class="LineNr"> 50 </span>    74/jump-if-=  $run-main/disp8
 <span id="L51" class="LineNr"> 51 </span>    <span class="subxComment"># run-tests()</span>
 <span id="L52" class="LineNr"> 52 </span>    e8/call  run-tests/disp32
 <span id="L53" class="LineNr"> 53 </span>    <span class="subxComment"># syscall(exit, *Num-test-failures)</span>