about summary refs log tree commit diff stats
path: root/html/apps/factorial3.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/factorial3.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/factorial3.subx.html')
-rw-r--r--html/apps/factorial3.subx.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/html/apps/factorial3.subx.html b/html/apps/factorial3.subx.html
index 04ebfe81..7b7cefe3 100644
--- a/html/apps/factorial3.subx.html
+++ b/html/apps/factorial3.subx.html
@@ -88,12 +88,12 @@ if ('onhashchange' in window) {
 <span id="L29" class="LineNr">29 </span>    <span class="subxH1Comment"># - if argc &gt; 1 and argv[1] == &quot;test&quot;, then return run_tests()</span>
 <span id="L30" class="LineNr">30 </span>    <span class="subxComment"># if (argc &lt;= 1) goto run-main</span>
 <span id="L31" class="LineNr">31 </span>    81 7/subop/compare *ebp 1/imm32
-<span id="L32" class="LineNr">32 </span>    7e/jump-if-lesser-or-equal $run-main/disp8
+<span id="L32" class="LineNr">32 </span>    7e/jump-if-&lt;= $run-main/disp8
 <span id="L33" class="LineNr">33 </span>    <span class="subxComment"># if (!kernel-string-equal?(argv[1], &quot;test&quot;)) goto run-main</span>
 <span id="L34" class="LineNr">34 </span>    (<a href='../052kernel-string-equal.subx.html#L33'>kernel-string-equal?</a> *(ebp+8) <span class="Constant">&quot;test&quot;</span>)  <span class="subxComment"># =&gt; eax</span>
 <span id="L35" class="LineNr">35 </span>    <span class="subxS1Comment"># . if (eax == false) goto run-main</span>
 <span id="L36" class="LineNr">36 </span>    3d/compare-eax-and 0/imm32/false
-<span id="L37" class="LineNr">37 </span>    74/jump-if-equal $run-main/disp8
+<span id="L37" class="LineNr">37 </span>    74/jump-if-= $run-main/disp8
 <span id="L38" class="LineNr">38 </span>    <span class="subxComment">#</span>
 <span id="L39" class="LineNr">39 </span>    (run-tests)
 <span id="L40" class="LineNr">40 </span>    <span class="subxComment"># syscall(exit, *Num-test-failures)</span>