diff options
Diffstat (limited to 'html/subx/054string_equal.subx.html')
-rw-r--r-- | html/subx/054string_equal.subx.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/html/subx/054string_equal.subx.html b/html/subx/054string_equal.subx.html index 814e60f0..657cce79 100644 --- a/html/subx/054string_equal.subx.html +++ b/html/subx/054string_equal.subx.html @@ -71,7 +71,7 @@ if ('onhashchange' in window) { <span id="L9" class="LineNr"> 9 </span> <span class="subxComment"># run-tests()</span> <span id="L10" class="LineNr"> 10 </span> e8/call run-tests/disp32 <span class="subxComment"># 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.</span> <span id="L11" class="LineNr"> 11 </span> <span class="subxComment"># syscall(exit, Num-test-failures)</span> -<span id="L12" class="LineNr"> 12 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 3/r32/EBX <span class="SpecialChar"> Num-test-failures</span>/disp32 <span class="subxComment"># copy *Num-test-failures to EBX</span> +<span id="L12" class="LineNr"> 12 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 3/r32/EBX <span class="SpecialChar">Num-test-failures</span>/disp32 <span class="subxComment"># copy *Num-test-failures to EBX</span> <span id="L13" class="LineNr"> 13 </span> b8/copy-to-EAX 1/imm32 <span id="L14" class="LineNr"> 14 </span> cd/syscall 0x80/imm8 <span id="L15" class="LineNr"> 15 </span> @@ -160,7 +160,7 @@ if ('onhashchange' in window) { <span id="L98" class="LineNr"> 98 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 8/imm32 <span class="subxComment"># add to ESP</span> <span id="L99" class="LineNr"> 99 </span> <span class="subxComment"># check-ints-equal(EAX, 1, msg)</span> <span id="L100" class="LineNr">100 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L101" class="LineNr">101 </span> 68/push <span class="SpecialChar">"F</span> - test-compare-empty-with-empty-string"/imm32 +<span id="L101" class="LineNr">101 </span> 68/push <span class="Constant">"F - test-compare-empty-with-empty-string"</span>/imm32 <span id="L102" class="LineNr">102 </span> 68/push 1/imm32/true <span id="L103" class="LineNr">103 </span> 50/push-EAX <span id="L104" class="LineNr">104 </span> <span class="subxS2Comment"># . . call</span> @@ -172,7 +172,7 @@ if ('onhashchange' in window) { <span id="L110" class="LineNr">110 </span>test-compare-empty-with-non-empty-string: <span class="subxComment"># also checks length-mismatch code path</span> <span id="L111" class="LineNr">111 </span> <span class="subxComment"># EAX = string-equal("", "Abc")</span> <span id="L112" class="LineNr">112 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L113" class="LineNr">113 </span> 68/push <span class="SpecialChar">"Abc</span>"/imm32 +<span id="L113" class="LineNr">113 </span> 68/push <span class="Constant">"Abc"</span>/imm32 <span id="L114" class="LineNr">114 </span> 68/push <span class="Constant">""</span>/imm32 <span id="L115" class="LineNr">115 </span> <span class="subxS2Comment"># . . call</span> <span id="L116" class="LineNr">116 </span> e8/call string-equal/disp32 @@ -180,7 +180,7 @@ if ('onhashchange' in window) { <span id="L118" class="LineNr">118 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 8/imm32 <span class="subxComment"># add to ESP</span> <span id="L119" class="LineNr">119 </span> <span class="subxComment"># check-ints-equal(EAX, 0, msg)</span> <span id="L120" class="LineNr">120 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L121" class="LineNr">121 </span> 68/push <span class="SpecialChar">"F</span> - test-compare-empty-with-non-empty-string"/imm32 +<span id="L121" class="LineNr">121 </span> 68/push <span class="Constant">"F - test-compare-empty-with-non-empty-string"</span>/imm32 <span id="L122" class="LineNr">122 </span> 68/push 0/imm32/false <span id="L123" class="LineNr">123 </span> 50/push-EAX <span id="L124" class="LineNr">124 </span> <span class="subxS2Comment"># . . call</span> @@ -192,15 +192,15 @@ if ('onhashchange' in window) { <span id="L130" class="LineNr">130 </span>test-compare-equal-strings: <span id="L131" class="LineNr">131 </span> <span class="subxComment"># EAX = string-equal("Abc", "Abc")</span> <span id="L132" class="LineNr">132 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L133" class="LineNr">133 </span> 68/push <span class="SpecialChar">"Abc</span>"/imm32 -<span id="L134" class="LineNr">134 </span> 68/push <span class="SpecialChar">"Abc</span>"/imm32 +<span id="L133" class="LineNr">133 </span> 68/push <span class="Constant">"Abc"</span>/imm32 +<span id="L134" class="LineNr">134 </span> 68/push <span class="Constant">"Abc"</span>/imm32 <span id="L135" class="LineNr">135 </span> <span class="subxS2Comment"># . . call</span> <span id="L136" class="LineNr">136 </span> e8/call string-equal/disp32 <span id="L137" class="LineNr">137 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L138" class="LineNr">138 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 8/imm32 <span class="subxComment"># add to ESP</span> <span id="L139" class="LineNr">139 </span> <span class="subxComment"># check-ints-equal(EAX, 1, msg)</span> <span id="L140" class="LineNr">140 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L141" class="LineNr">141 </span> 68/push <span class="SpecialChar">"F</span> - test-compare-equal-strings"/imm32 +<span id="L141" class="LineNr">141 </span> 68/push <span class="Constant">"F - test-compare-equal-strings"</span>/imm32 <span id="L142" class="LineNr">142 </span> 68/push 1/imm32/true <span id="L143" class="LineNr">143 </span> 50/push-EAX <span id="L144" class="LineNr">144 </span> <span class="subxS2Comment"># . . call</span> @@ -212,15 +212,15 @@ if ('onhashchange' in window) { <span id="L150" class="LineNr">150 </span>test-compare-inequal-strings-equal-lengths: <span id="L151" class="LineNr">151 </span> <span class="subxComment"># EAX = string-equal("Abc", "Adc")</span> <span id="L152" class="LineNr">152 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L153" class="LineNr">153 </span> 68/push <span class="SpecialChar">"Adc</span>"/imm32 -<span id="L154" class="LineNr">154 </span> 68/push <span class="SpecialChar">"Abc</span>"/imm32 +<span id="L153" class="LineNr">153 </span> 68/push <span class="Constant">"Adc"</span>/imm32 +<span id="L154" class="LineNr">154 </span> 68/push <span class="Constant">"Abc"</span>/imm32 <span id="L155" class="LineNr">155 </span> <span class="subxS2Comment"># . . call</span> <span id="L156" class="LineNr">156 </span> e8/call string-equal/disp32 <span id="L157" class="LineNr">157 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L158" class="LineNr">158 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 8/imm32 <span class="subxComment"># add to ESP</span> <span id="L159" class="LineNr">159 </span> <span class="subxComment"># check-ints-equal(EAX, 0, msg)</span> <span id="L160" class="LineNr">160 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L161" class="LineNr">161 </span> 68/push <span class="SpecialChar">"F</span> - test-compare-inequal-strings-equal-lengths"/imm32 +<span id="L161" class="LineNr">161 </span> 68/push <span class="Constant">"F - test-compare-inequal-strings-equal-lengths"</span>/imm32 <span id="L162" class="LineNr">162 </span> 68/push 0/imm32/false <span id="L163" class="LineNr">163 </span> 50/push-EAX <span id="L164" class="LineNr">164 </span> <span class="subxS2Comment"># . . call</span> |