diff options
Diffstat (limited to 'html/subx/examples')
-rw-r--r-- | html/subx/examples/ex11.subx.html | 40 | ||||
-rw-r--r-- | html/subx/examples/ex12.subx.html | 2 | ||||
-rw-r--r-- | html/subx/examples/ex4.subx.html | 4 | ||||
-rw-r--r-- | html/subx/examples/ex6.subx.html | 4 | ||||
-rw-r--r-- | html/subx/examples/ex7.subx.html | 26 |
5 files changed, 38 insertions, 38 deletions
diff --git a/html/subx/examples/ex11.subx.html b/html/subx/examples/ex11.subx.html index d4460ce5..56377403 100644 --- a/html/subx/examples/ex11.subx.html +++ b/html/subx/examples/ex11.subx.html @@ -176,14 +176,14 @@ if ('onhashchange' in window) { <span id="L114" class="LineNr">114 </span> <span class="subxComment"># EAX = kernel-string-equal(Null-kernel-string, "")</span> <span id="L115" class="LineNr">115 </span> <span class="subxS2Comment"># . . push args</span> <span id="L116" class="LineNr">116 </span> 68/push <span class="Constant">""</span>/imm32 -<span id="L117" class="LineNr">117 </span> 68/push <span class="SpecialChar"> Null-kernel-string</span>/imm32 +<span id="L117" class="LineNr">117 </span> 68/push <span class="SpecialChar">Null-kernel-string</span>/imm32 <span id="L118" class="LineNr">118 </span> <span class="subxS2Comment"># . . call</span> <span id="L119" class="LineNr">119 </span> e8/call kernel-string-equal/disp32 <span id="L120" class="LineNr">120 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L121" class="LineNr">121 </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="L122" class="LineNr">122 </span> <span class="subxComment"># check-ints-equal(EAX, 1, msg)</span> <span id="L123" class="LineNr">123 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L124" class="LineNr">124 </span> 68/push <span class="SpecialChar">"F</span> - test-compare-null-kernel-string-with-empty-array"/imm32 +<span id="L124" class="LineNr">124 </span> 68/push <span class="Constant">"F - test-compare-null-kernel-string-with-empty-array"</span>/imm32 <span id="L125" class="LineNr">125 </span> 68/push 1/imm32/true <span id="L126" class="LineNr">126 </span> 50/push-EAX <span id="L127" class="LineNr">127 </span> <span class="subxS2Comment"># . . call</span> @@ -195,15 +195,15 @@ if ('onhashchange' in window) { <span id="L133" class="LineNr">133 </span>test-compare-null-kernel-string-with-non-empty-array: <span id="L134" class="LineNr">134 </span> <span class="subxComment"># EAX = kernel-string-equal(Null-kernel-string, "Abc")</span> <span id="L135" class="LineNr">135 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L136" class="LineNr">136 </span> 68/push <span class="SpecialChar">"Abc</span>"/imm32 -<span id="L137" class="LineNr">137 </span> 68/push <span class="SpecialChar"> Null-kernel-string</span>/imm32 +<span id="L136" class="LineNr">136 </span> 68/push <span class="Constant">"Abc"</span>/imm32 +<span id="L137" class="LineNr">137 </span> 68/push <span class="SpecialChar">Null-kernel-string</span>/imm32 <span id="L138" class="LineNr">138 </span> <span class="subxS2Comment"># . . call</span> <span id="L139" class="LineNr">139 </span> e8/call kernel-string-equal/disp32 <span id="L140" class="LineNr">140 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L141" class="LineNr">141 </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="L142" class="LineNr">142 </span> <span class="subxComment"># check-ints-equal(EAX, 0, msg)</span> <span id="L143" class="LineNr">143 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L144" class="LineNr">144 </span> 68/push <span class="SpecialChar">"F</span> - test-compare-null-kernel-string-with-non-empty-array"/imm32 +<span id="L144" class="LineNr">144 </span> 68/push <span class="Constant">"F - test-compare-null-kernel-string-with-non-empty-array"</span>/imm32 <span id="L145" class="LineNr">145 </span> 68/push 0/imm32/false <span id="L146" class="LineNr">146 </span> 50/push-EAX <span id="L147" class="LineNr">147 </span> <span class="subxS2Comment"># . . call</span> @@ -215,15 +215,15 @@ if ('onhashchange' in window) { <span id="L153" class="LineNr">153 </span>test-compare-kernel-string-with-equal-array: <span id="L154" class="LineNr">154 </span> <span class="subxComment"># EAX = kernel-string-equal(Abc-kernel-string, "Abc")</span> <span id="L155" class="LineNr">155 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L156" class="LineNr">156 </span> 68/push <span class="SpecialChar">"Abc</span>"/imm32 -<span id="L157" class="LineNr">157 </span> 68/push <span class="SpecialChar"> Abc-kernel-string</span>/imm32 +<span id="L156" class="LineNr">156 </span> 68/push <span class="Constant">"Abc"</span>/imm32 +<span id="L157" class="LineNr">157 </span> 68/push <span class="SpecialChar">Abc-kernel-string</span>/imm32 <span id="L158" class="LineNr">158 </span> <span class="subxS2Comment"># . . call</span> <span id="L159" class="LineNr">159 </span> e8/call kernel-string-equal/disp32 <span id="L160" class="LineNr">160 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L161" class="LineNr">161 </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="L162" class="LineNr">162 </span> <span class="subxComment"># check-ints-equal(EAX, 1, msg)</span> <span id="L163" class="LineNr">163 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L164" class="LineNr">164 </span> 68/push <span class="SpecialChar">"F</span> - test-compare-kernel-string-with-equal-array"/imm32 +<span id="L164" class="LineNr">164 </span> 68/push <span class="Constant">"F - test-compare-kernel-string-with-equal-array"</span>/imm32 <span id="L165" class="LineNr">165 </span> 68/push 1/imm32/true <span id="L166" class="LineNr">166 </span> 50/push-EAX <span id="L167" class="LineNr">167 </span> <span class="subxS2Comment"># . . call</span> @@ -235,15 +235,15 @@ if ('onhashchange' in window) { <span id="L173" class="LineNr">173 </span>test-compare-kernel-string-with-inequal-array: <span id="L174" class="LineNr">174 </span> <span class="subxComment"># EAX = kernel-string-equal(Abc-kernel-string, "Adc")</span> <span id="L175" class="LineNr">175 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L176" class="LineNr">176 </span> 68/push <span class="SpecialChar">"Adc</span>"/imm32 -<span id="L177" class="LineNr">177 </span> 68/push <span class="SpecialChar"> Abc-kernel-string</span>/imm32 +<span id="L176" class="LineNr">176 </span> 68/push <span class="Constant">"Adc"</span>/imm32 +<span id="L177" class="LineNr">177 </span> 68/push <span class="SpecialChar">Abc-kernel-string</span>/imm32 <span id="L178" class="LineNr">178 </span> <span class="subxS2Comment"># . . call</span> <span id="L179" class="LineNr">179 </span> e8/call kernel-string-equal/disp32 <span id="L180" class="LineNr">180 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L181" class="LineNr">181 </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="L182" class="LineNr">182 </span> <span class="subxComment"># check-ints-equal(EAX, 0, msg)</span> <span id="L183" class="LineNr">183 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L184" class="LineNr">184 </span> 68/push <span class="SpecialChar">"F</span> - test-compare-kernel-string-with-equal-array"/imm32 +<span id="L184" class="LineNr">184 </span> 68/push <span class="Constant">"F - test-compare-kernel-string-with-equal-array"</span>/imm32 <span id="L185" class="LineNr">185 </span> 68/push 0/imm32/false <span id="L186" class="LineNr">186 </span> 50/push-EAX <span id="L187" class="LineNr">187 </span> <span class="subxS2Comment"># . . call</span> @@ -256,14 +256,14 @@ if ('onhashchange' in window) { <span id="L194" class="LineNr">194 </span> <span class="subxComment"># EAX = kernel-string-equal(Abc-kernel-string, "")</span> <span id="L195" class="LineNr">195 </span> <span class="subxS2Comment"># . . push args</span> <span id="L196" class="LineNr">196 </span> 68/push <span class="Constant">""</span>/imm32 -<span id="L197" class="LineNr">197 </span> 68/push <span class="SpecialChar"> Abc-kernel-string</span>/imm32 +<span id="L197" class="LineNr">197 </span> 68/push <span class="SpecialChar">Abc-kernel-string</span>/imm32 <span id="L198" class="LineNr">198 </span> <span class="subxS2Comment"># . . call</span> <span id="L199" class="LineNr">199 </span> e8/call kernel-string-equal/disp32 <span id="L200" class="LineNr">200 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L201" class="LineNr">201 </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="L202" class="LineNr">202 </span> <span class="subxComment"># check-ints-equal(EAX, 0)</span> <span id="L203" class="LineNr">203 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L204" class="LineNr">204 </span> 68/push <span class="SpecialChar">"F</span> - test-compare-kernel-string-with-equal-array"/imm32 +<span id="L204" class="LineNr">204 </span> 68/push <span class="Constant">"F - test-compare-kernel-string-with-equal-array"</span>/imm32 <span id="L205" class="LineNr">205 </span> 68/push 0/imm32/false <span id="L206" class="LineNr">206 </span> 50/push-EAX <span id="L207" class="LineNr">207 </span> <span class="subxS2Comment"># . . call</span> @@ -275,15 +275,15 @@ if ('onhashchange' in window) { <span id="L213" class="LineNr">213 </span>test-compare-kernel-string-with-shorter-array: <span id="L214" class="LineNr">214 </span> <span class="subxComment"># EAX = kernel-string-equal(Abc-kernel-string, "Ab")</span> <span id="L215" class="LineNr">215 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L216" class="LineNr">216 </span> 68/push <span class="SpecialChar">"Ab</span>"/imm32 -<span id="L217" class="LineNr">217 </span> 68/push <span class="SpecialChar"> Abc-kernel-string</span>/imm32 +<span id="L216" class="LineNr">216 </span> 68/push <span class="Constant">"Ab"</span>/imm32 +<span id="L217" class="LineNr">217 </span> 68/push <span class="SpecialChar">Abc-kernel-string</span>/imm32 <span id="L218" class="LineNr">218 </span> <span class="subxS2Comment"># . . call</span> <span id="L219" class="LineNr">219 </span> e8/call kernel-string-equal/disp32 <span id="L220" class="LineNr">220 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L221" class="LineNr">221 </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="L222" class="LineNr">222 </span> <span class="subxComment"># check-ints-equal(EAX, 0)</span> <span id="L223" class="LineNr">223 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L224" class="LineNr">224 </span> 68/push <span class="SpecialChar">"F</span> - test-compare-kernel-string-with-shorter-array"/imm32 +<span id="L224" class="LineNr">224 </span> 68/push <span class="Constant">"F - test-compare-kernel-string-with-shorter-array"</span>/imm32 <span id="L225" class="LineNr">225 </span> 68/push 0/imm32/false <span id="L226" class="LineNr">226 </span> 50/push-EAX <span id="L227" class="LineNr">227 </span> <span class="subxS2Comment"># . . call</span> @@ -295,15 +295,15 @@ if ('onhashchange' in window) { <span id="L233" class="LineNr">233 </span>test-compare-kernel-string-with-longer-array: <span id="L234" class="LineNr">234 </span> <span class="subxComment"># EAX = kernel-string-equal(Abc-kernel-string, "Abcd")</span> <span id="L235" class="LineNr">235 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L236" class="LineNr">236 </span> 68/push <span class="SpecialChar">"Abcd</span>"/imm32 -<span id="L237" class="LineNr">237 </span> 68/push <span class="SpecialChar"> Abc-kernel-string</span>/imm32 +<span id="L236" class="LineNr">236 </span> 68/push <span class="Constant">"Abcd"</span>/imm32 +<span id="L237" class="LineNr">237 </span> 68/push <span class="SpecialChar">Abc-kernel-string</span>/imm32 <span id="L238" class="LineNr">238 </span> <span class="subxS2Comment"># . . call</span> <span id="L239" class="LineNr">239 </span> e8/call kernel-string-equal/disp32 <span id="L240" class="LineNr">240 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L241" class="LineNr">241 </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="L242" class="LineNr">242 </span> <span class="subxComment"># check-ints-equal(EAX, 0)</span> <span id="L243" class="LineNr">243 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L244" class="LineNr">244 </span> 68/push <span class="SpecialChar">"F</span> - test-compare-kernel-string-with-longer-array"/imm32 +<span id="L244" class="LineNr">244 </span> 68/push <span class="Constant">"F - test-compare-kernel-string-with-longer-array"</span>/imm32 <span id="L245" class="LineNr">245 </span> 68/push 0/imm32/false <span id="L246" class="LineNr">246 </span> 50/push-EAX <span id="L247" class="LineNr">247 </span> <span class="subxS2Comment"># . . call</span> @@ -350,7 +350,7 @@ if ('onhashchange' in window) { <span id="L288" class="LineNr">288 </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> 4/imm32 <span class="subxComment"># add to ESP</span> <span id="L289" class="LineNr">289 </span> <span class="subxComment"># print newline</span> <span id="L290" class="LineNr">290 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L291" class="LineNr">291 </span> 68/push <span class="SpecialChar"> Newline</span>/imm32 +<span id="L291" class="LineNr">291 </span> 68/push <span class="SpecialChar">Newline</span>/imm32 <span id="L292" class="LineNr">292 </span> <span class="subxS2Comment"># . . call</span> <span id="L293" class="LineNr">293 </span> e8/call write-stderr/disp32 <span id="L294" class="LineNr">294 </span> <span class="subxS2Comment"># . . discard args</span> diff --git a/html/subx/examples/ex12.subx.html b/html/subx/examples/ex12.subx.html index 92a98277..35235c57 100644 --- a/html/subx/examples/ex12.subx.html +++ b/html/subx/examples/ex12.subx.html @@ -73,7 +73,7 @@ if ('onhashchange' in window) { <span id="L12" class="LineNr">12 </span><span class="subxS1Comment"># . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes</span> <span id="L13" class="LineNr">13 </span> <span id="L14" class="LineNr">14 </span> <span class="subxComment"># syscall(mmap, 0x1000)</span> -<span id="L15" class="LineNr">15 </span> bb/copy-to-EBX <span class="SpecialChar"> Mmap-new-segment</span>/imm32 +<span id="L15" class="LineNr">15 </span> bb/copy-to-EBX <span class="SpecialChar">Mmap-new-segment</span>/imm32 <span id="L16" class="LineNr">16 </span> b8/copy-to-EAX 0x5a/imm32/mmap <span id="L17" class="LineNr">17 </span> cd/syscall 0x80/imm8 <span id="L18" class="LineNr">18 </span> diff --git a/html/subx/examples/ex4.subx.html b/html/subx/examples/ex4.subx.html index 4e442a60..dab870b9 100644 --- a/html/subx/examples/ex4.subx.html +++ b/html/subx/examples/ex4.subx.html @@ -69,7 +69,7 @@ if ('onhashchange' in window) { <span id="L10" class="LineNr">10 </span><span class="subxS1Comment"># . fd = 0 (stdin)</span> <span id="L11" class="LineNr">11 </span>bb/copy-to-EBX 0/imm32 <span id="L12" class="LineNr">12 </span><span class="subxS1Comment"># . data = X (location to write result to)</span> -<span id="L13" class="LineNr">13 </span>b9/copy-to-ECX <span class="SpecialChar"> X</span>/imm32 +<span id="L13" class="LineNr">13 </span>b9/copy-to-ECX <span class="SpecialChar">X</span>/imm32 <span id="L14" class="LineNr">14 </span><span class="subxS1Comment"># . size = 1 character</span> <span id="L15" class="LineNr">15 </span>ba/copy-to-EDX 1/imm32 <span id="L16" class="LineNr">16 </span><span class="subxS1Comment"># . syscall</span> @@ -80,7 +80,7 @@ if ('onhashchange' in window) { <span id="L21" class="LineNr">21 </span><span class="subxS1Comment"># . fd = 1 (stdout)</span> <span id="L22" class="LineNr">22 </span>bb/copy-to-EBX 1/imm32 <span id="L23" class="LineNr">23 </span><span class="subxS1Comment"># . initialize X (location to read from)</span> -<span id="L24" class="LineNr">24 </span>b9/copy-to-ECX <span class="SpecialChar"> X</span>/imm32 +<span id="L24" class="LineNr">24 </span>b9/copy-to-ECX <span class="SpecialChar">X</span>/imm32 <span id="L25" class="LineNr">25 </span><span class="subxS1Comment"># . size = 1 character</span> <span id="L26" class="LineNr">26 </span>ba/copy-to-EDX 1/imm32 <span id="L27" class="LineNr">27 </span><span class="subxS1Comment"># . syscall</span> diff --git a/html/subx/examples/ex6.subx.html b/html/subx/examples/ex6.subx.html index a987f60c..092685e2 100644 --- a/html/subx/examples/ex6.subx.html +++ b/html/subx/examples/ex6.subx.html @@ -74,9 +74,9 @@ if ('onhashchange' in window) { <span id="L14" class="LineNr">14 </span> <span class="subxS1Comment"># . fd = 1 (stdout)</span> <span id="L15" class="LineNr">15 </span> bb/copy-to-EBX 1/imm32 <span id="L16" class="LineNr">16 </span> <span class="subxS1Comment"># . initialize X (location to write result to)</span> -<span id="L17" class="LineNr">17 </span> b9/copy-to-ECX <span class="SpecialChar"> X</span>/imm32 +<span id="L17" class="LineNr">17 </span> b9/copy-to-ECX <span class="SpecialChar">X</span>/imm32 <span id="L18" class="LineNr">18 </span> <span class="subxS1Comment"># . initialize Size</span> -<span id="L19" class="LineNr">19 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 2/r32/EDX <span class="SpecialChar"> Size</span>/disp32 <span class="CommentedCode"> . </span> <span class="subxComment"># copy *Size to EDX</span> +<span id="L19" class="LineNr">19 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 2/r32/EDX <span class="SpecialChar">Size</span>/disp32 <span class="CommentedCode"> . </span> <span class="subxComment"># copy *Size to EDX</span> <span id="L20" class="LineNr">20 </span> <span class="subxS1Comment"># . syscall</span> <span id="L21" class="LineNr">21 </span> b8/copy-to-EAX 4/imm32/write <span id="L22" class="LineNr">22 </span> cd/syscall 0x80/imm8 diff --git a/html/subx/examples/ex7.subx.html b/html/subx/examples/ex7.subx.html index 2a835bbb..e20ebc88 100644 --- a/html/subx/examples/ex7.subx.html +++ b/html/subx/examples/ex7.subx.html @@ -77,75 +77,75 @@ if ('onhashchange' in window) { <span id="L17" class="LineNr"> 17 </span><span class="subxS1Comment"># . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes</span> <span id="L18" class="LineNr"> 18 </span> <span id="L19" class="LineNr"> 19 </span> <span class="subxComment"># syscall(creat, Filename)</span> -<span id="L20" class="LineNr"> 20 </span> bb/copy-to-EBX <span class="SpecialChar"> Filename</span>/imm32 +<span id="L20" class="LineNr"> 20 </span> bb/copy-to-EBX <span class="SpecialChar">Filename</span>/imm32 <span id="L21" class="LineNr"> 21 </span> b9/copy-to-ECX 0x180/imm32/fixed-perms <span id="L22" class="LineNr"> 22 </span> b8/copy-to-EAX 8/imm32/creat <span id="L23" class="LineNr"> 23 </span> cd/syscall 0x80/imm8 <span id="L24" class="LineNr"> 24 </span> <span id="L25" class="LineNr"> 25 </span> <span class="subxComment"># stream = syscall(open, Filename, O_WRONLY, 0) # we can't use 'fd' because it looks like a hex byte</span> -<span id="L26" class="LineNr"> 26 </span> bb/copy-to-EBX <span class="SpecialChar"> Filename</span>/imm32 +<span id="L26" class="LineNr"> 26 </span> bb/copy-to-EBX <span class="SpecialChar">Filename</span>/imm32 <span id="L27" class="LineNr"> 27 </span> b9/copy-to-ECX 1/imm32/wronly <span id="L28" class="LineNr"> 28 </span> ba/copy-to-EDX 0x180/imm32/fixed-perms <span id="L29" class="LineNr"> 29 </span> b8/copy-to-EAX 5/imm32/open <span id="L30" class="LineNr"> 30 </span> cd/syscall 0x80/imm8 <span id="L31" class="LineNr"> 31 </span> <span class="subxComment"># save stream</span> -<span id="L32" class="LineNr"> 32 </span> bb/copy-to-EBX <span class="SpecialChar"> Stream</span>/imm32 +<span id="L32" class="LineNr"> 32 </span> bb/copy-to-EBX <span class="SpecialChar">Stream</span>/imm32 <span id="L33" class="LineNr"> 33 </span> 89/copy 0/mod/indirect 3/rm32/EBX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0/r32/EAX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="subxComment"># copy EAX to *EBX</span> <span id="L34" class="LineNr"> 34 </span> <span id="L35" class="LineNr"> 35 </span> <span class="subxComment"># syscall(write, Stream, "a", 1)</span> <span id="L36" class="LineNr"> 36 </span> <span class="subxS1Comment"># . load stream</span> -<span id="L37" class="LineNr"> 37 </span> bb/copy-to-EBX <span class="SpecialChar"> Stream</span>/imm32 +<span id="L37" class="LineNr"> 37 </span> bb/copy-to-EBX <span class="SpecialChar">Stream</span>/imm32 <span id="L38" class="LineNr"> 38 </span> 8b/copy 0/mod/indirect 3/rm32/EBX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 3/r32/EBX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="subxComment"># copy *EBX to EBX</span> <span id="L39" class="LineNr"> 39 </span> <span class="subxS1Comment"># .</span> -<span id="L40" class="LineNr"> 40 </span> b9/copy-to-ECX <span class="SpecialChar"> A</span>/imm32 +<span id="L40" class="LineNr"> 40 </span> b9/copy-to-ECX <span class="SpecialChar">A</span>/imm32 <span id="L41" class="LineNr"> 41 </span> ba/copy-to-EDX 1/imm32/size <span id="L42" class="LineNr"> 42 </span> b8/copy-to-EAX 4/imm32/write <span id="L43" class="LineNr"> 43 </span> cd/syscall 0x80/imm8 <span id="L44" class="LineNr"> 44 </span> <span id="L45" class="LineNr"> 45 </span> <span class="subxComment"># syscall(close, Stream)</span> <span id="L46" class="LineNr"> 46 </span> <span class="subxS1Comment"># . load stream</span> -<span id="L47" class="LineNr"> 47 </span> bb/copy-to-EBX <span class="SpecialChar"> Stream</span>/imm32 +<span id="L47" class="LineNr"> 47 </span> bb/copy-to-EBX <span class="SpecialChar">Stream</span>/imm32 <span id="L48" class="LineNr"> 48 </span> 8b/copy 0/mod/indirect 3/rm32/EBX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 3/r32/EBX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="subxComment"># copy *EBX to EBX</span> <span id="L49" class="LineNr"> 49 </span> <span class="subxS1Comment"># .</span> <span id="L50" class="LineNr"> 50 </span> b8/copy-to-EAX 6/imm32/close <span id="L51" class="LineNr"> 51 </span> cd/syscall 0x80/imm8 <span id="L52" class="LineNr"> 52 </span> <span id="L53" class="LineNr"> 53 </span> <span class="subxComment"># stream = syscall(open, Filename, O_RDONLY, 0)</span> -<span id="L54" class="LineNr"> 54 </span> bb/copy-to-EBX <span class="SpecialChar"> Filename</span>/imm32 +<span id="L54" class="LineNr"> 54 </span> bb/copy-to-EBX <span class="SpecialChar">Filename</span>/imm32 <span id="L55" class="LineNr"> 55 </span> b9/copy-to-ECX 0/imm32/rdonly <span id="L56" class="LineNr"> 56 </span> ba/copy-to-EDX 0x180/imm32/fixed-perms <span id="L57" class="LineNr"> 57 </span> b8/copy-to-EAX 5/imm32/open <span id="L58" class="LineNr"> 58 </span> cd/syscall 0x80/imm8 <span id="L59" class="LineNr"> 59 </span> <span class="subxS1Comment"># . save Stream</span> -<span id="L60" class="LineNr"> 60 </span> bb/copy-to-EBX <span class="SpecialChar"> Stream</span>/imm32 +<span id="L60" class="LineNr"> 60 </span> bb/copy-to-EBX <span class="SpecialChar">Stream</span>/imm32 <span id="L61" class="LineNr"> 61 </span> 89/copy 0/mod/indirect 3/rm32/EBX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0/r32/EAX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="subxComment"># copy EAX to *EBX</span> <span id="L62" class="LineNr"> 62 </span> <span id="L63" class="LineNr"> 63 </span> <span class="subxComment"># syscall(read, Stream, B, 1)</span> <span id="L64" class="LineNr"> 64 </span> <span class="subxS1Comment"># . load stream</span> -<span id="L65" class="LineNr"> 65 </span> bb/copy-to-EBX <span class="SpecialChar"> Stream</span>/imm32 +<span id="L65" class="LineNr"> 65 </span> bb/copy-to-EBX <span class="SpecialChar">Stream</span>/imm32 <span id="L66" class="LineNr"> 66 </span> 8b/copy 0/mod/indirect 3/rm32/EBX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 3/r32/EBX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="subxComment"># copy *EBX to EBX</span> <span id="L67" class="LineNr"> 67 </span> <span class="subxS1Comment"># .</span> -<span id="L68" class="LineNr"> 68 </span> b9/copy-to-ECX <span class="SpecialChar"> B</span>/imm32 +<span id="L68" class="LineNr"> 68 </span> b9/copy-to-ECX <span class="SpecialChar">B</span>/imm32 <span id="L69" class="LineNr"> 69 </span> ba/copy-to-EDX 1/imm32/size <span id="L70" class="LineNr"> 70 </span> b8/copy-to-EAX 3/imm32/read <span id="L71" class="LineNr"> 71 </span> cd/syscall 0x80/imm8 <span id="L72" class="LineNr"> 72 </span> <span id="L73" class="LineNr"> 73 </span> <span class="subxComment"># syscall(close, Stream)</span> <span id="L74" class="LineNr"> 74 </span> <span class="subxS1Comment"># . load stream</span> -<span id="L75" class="LineNr"> 75 </span> bb/copy-to-EBX <span class="SpecialChar"> Stream</span>/imm32 +<span id="L75" class="LineNr"> 75 </span> bb/copy-to-EBX <span class="SpecialChar">Stream</span>/imm32 <span id="L76" class="LineNr"> 76 </span> 8b/copy 0/mod/indirect 3/rm32/EBX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 3/r32/EBX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="subxComment"># copy *EBX to EBX</span> <span id="L77" class="LineNr"> 77 </span> <span class="subxComment">#</span> <span id="L78" class="LineNr"> 78 </span> b8/copy-to-EAX 6/imm32/close <span id="L79" class="LineNr"> 79 </span> cd/syscall 0x80/imm8 <span id="L80" class="LineNr"> 80 </span> <span id="L81" class="LineNr"> 81 </span> <span class="subxComment"># syscall(unlink, filename)</span> -<span id="L82" class="LineNr"> 82 </span> bb/copy-to-EBX <span class="SpecialChar"> Filename</span>/imm32 +<span id="L82" class="LineNr"> 82 </span> bb/copy-to-EBX <span class="SpecialChar">Filename</span>/imm32 <span id="L83" class="LineNr"> 83 </span> b8/copy-to-EAX 0xa/imm32/unlink <span id="L84" class="LineNr"> 84 </span> cd/syscall 0x80/imm8 <span id="L85" class="LineNr"> 85 </span> <span id="L86" class="LineNr"> 86 </span> <span class="subxComment"># syscall(exit, b)</span> <span id="L87" class="LineNr"> 87 </span> <span class="subxS1Comment"># . load b</span> -<span id="L88" class="LineNr"> 88 </span> bb/copy-to-EBX <span class="SpecialChar"> B</span>/imm32 +<span id="L88" class="LineNr"> 88 </span> bb/copy-to-EBX <span class="SpecialChar">B</span>/imm32 <span id="L89" class="LineNr"> 89 </span> 8b/copy 0/mod/indirect 3/rm32/EBX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 3/r32/EBX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="subxComment"># copy *EBX to EBX</span> <span id="L90" class="LineNr"> 90 </span> <span class="subxComment">#</span> <span id="L91" class="LineNr"> 91 </span> b8/copy-to-EAX 1/imm32/exit |