diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-12-09 01:26:58 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-12-09 01:26:58 -0800 |
commit | 8aeb85f04ee68b960a6d326aca1a17dec2f6d019 (patch) | |
tree | 26f861361c28ca77fb8298b21a905dc6e06c91ef /html/064write-byte.subx.html | |
parent | 2249e605c19f0dbe0c34c1c4f635b802f56dc535 (diff) | |
download | mu-8aeb85f04ee68b960a6d326aca1a17dec2f6d019.tar.gz |
5806
Diffstat (limited to 'html/064write-byte.subx.html')
-rw-r--r-- | html/064write-byte.subx.html | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/html/064write-byte.subx.html b/html/064write-byte.subx.html index bb2a4146..8893e7da 100644 --- a/html/064write-byte.subx.html +++ b/html/064write-byte.subx.html @@ -19,10 +19,10 @@ a { color:inherit; } .subxMinorFunction { color: #875f5f; } .LineNr { } .subxS1Comment { color: #0000af; } -.Constant { color: #008787; } .SpecialChar { color: #d70000; } -.Normal { color: #000000; background-color: #c6c6c6; padding-bottom: 1px; } +.Constant { color: #008787; } .subxH1Comment { color: #005faf; text-decoration: underline; } +.Normal { color: #000000; background-color: #c6c6c6; padding-bottom: 1px; } .subxS2Comment { color: #8a8a8a; } .subxTest { color: #5f8700; } --> @@ -69,10 +69,10 @@ if ('onhashchange' in window) { <span id="L7" class="LineNr"> 7 </span>== data <span id="L8" class="LineNr"> 8 </span> <span id="L9" class="LineNr"> 9 </span><span class="subxComment"># The buffered file for standard output.</span> -<span id="L10" class="LineNr"> 10 </span><span class="SpecialChar">Stdout</span>: -<span id="L11" class="LineNr"> 11 </span> <span class="subxComment"># file descriptor or (address stream)</span> +<span id="L10" class="LineNr"> 10 </span><span class="SpecialChar">Stdout</span>: <span class="subxComment"># (ref buffered-file)</span> +<span id="L11" class="LineNr"> 11 </span> <span class="subxComment"># file descriptor or (address stream byte)</span> <span id="L12" class="LineNr"> 12 </span> 1/imm32 <span class="subxComment"># standard output</span> -<span id="L13" class="LineNr"> 13 </span>Stdout->buffer: +<span id="L13" class="LineNr"> 13 </span><span class="Constant">$Stdout->buffer</span>: <span id="L14" class="LineNr"> 14 </span> <span class="subxComment"># inlined fields for a stream</span> <span id="L15" class="LineNr"> 15 </span> <span class="subxComment"># current write index</span> <span id="L16" class="LineNr"> 16 </span> 0/imm32 @@ -177,9 +177,9 @@ if ('onhashchange' in window) { <span id="L115" class="LineNr">115 </span> e8/call <a href='055stream.subx.html#L17'>clear-stream</a>/disp32 <span id="L116" class="LineNr">116 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L117" class="LineNr">117 </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> 4/imm32 <span class="subxComment"># add to esp</span> -<span id="L118" class="LineNr">118 </span> <span class="subxS1Comment"># . clear-stream(_test-buffered-file->buffer)</span> +<span id="L118" class="LineNr">118 </span> <span class="subxS1Comment"># . clear-stream($_test-buffered-file->buffer)</span> <span id="L119" class="LineNr">119 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L120" class="LineNr">120 </span> 68/push <a href='061read-byte.subx.html#L278'>_test-buffered-file->buffer</a>/imm32 +<span id="L120" class="LineNr">120 </span> 68/push $_test-buffered-file->buffer/imm32 <span id="L121" class="LineNr">121 </span> <span class="subxS2Comment"># . . call</span> <span id="L122" class="LineNr">122 </span> e8/call <a href='055stream.subx.html#L17'>clear-stream</a>/disp32 <span id="L123" class="LineNr">123 </span> <span class="subxS2Comment"># . . discard args</span> @@ -187,14 +187,14 @@ if ('onhashchange' in window) { <span id="L125" class="LineNr">125 </span> <span class="subxComment"># write-byte-buffered(_test-buffered-file, 'A')</span> <span id="L126" class="LineNr">126 </span> <span class="subxS2Comment"># . . push args</span> <span id="L127" class="LineNr">127 </span> 68/push 0x41/imm32 -<span id="L128" class="LineNr">128 </span> 68/push <a href='061read-byte.subx.html#L275'>_test-buffered-file</a>/imm32 +<span id="L128" class="LineNr">128 </span> 68/push <a href='061read-byte.subx.html#L274'>_test-buffered-file</a>/imm32 <span id="L129" class="LineNr">129 </span> <span class="subxS2Comment"># . . call</span> <span id="L130" class="LineNr">130 </span> e8/call <a href='064write-byte.subx.html#L33'>write-byte-buffered</a>/disp32 <span id="L131" class="LineNr">131 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L132" class="LineNr">132 </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="L133" class="LineNr">133 </span> <span class="subxComment"># flush(_test-buffered-file)</span> <span id="L134" class="LineNr">134 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L135" class="LineNr">135 </span> 68/push <a href='061read-byte.subx.html#L275'>_test-buffered-file</a>/imm32 +<span id="L135" class="LineNr">135 </span> 68/push <a href='061read-byte.subx.html#L274'>_test-buffered-file</a>/imm32 <span id="L136" class="LineNr">136 </span> <span class="subxS2Comment"># . . call</span> <span id="L137" class="LineNr">137 </span> e8/call <a href='064write-byte.subx.html#L81'>flush</a>/disp32 <span id="L138" class="LineNr">138 </span> <span class="subxS2Comment"># . . discard args</span> @@ -205,7 +205,7 @@ if ('onhashchange' in window) { <span id="L143" class="LineNr">143 </span> 68/push <span class="Constant">"A"</span>/imm32 <span id="L144" class="LineNr">144 </span> 68/push <a href='057write.subx.html#L148'>_test-stream</a>/imm32 <span id="L145" class="LineNr">145 </span> <span class="subxS2Comment"># . . call</span> -<span id="L146" class="LineNr">146 </span> e8/call <a href='058stream-equal.subx.html#L193'>check-stream-equal</a>/disp32 +<span id="L146" class="LineNr">146 </span> e8/call <a href='058stream-equal.subx.html#L194'>check-stream-equal</a>/disp32 <span id="L147" class="LineNr">147 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L148" class="LineNr">148 </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> 0xc/imm32 <span class="subxComment"># add to esp</span> <span id="L149" class="LineNr">149 </span> <span class="subxS1Comment"># . end</span> @@ -221,18 +221,18 @@ if ('onhashchange' in window) { <span id="L159" class="LineNr">159 </span> e8/call <a href='055stream.subx.html#L17'>clear-stream</a>/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="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/imm32 <span class="subxComment"># add to esp</span> -<span id="L162" class="LineNr">162 </span> <span class="subxS1Comment"># . clear-stream(_test-buffered-file->buffer)</span> +<span id="L162" class="LineNr">162 </span> <span class="subxS1Comment"># . clear-stream($_test-buffered-file->buffer)</span> <span id="L163" class="LineNr">163 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L164" class="LineNr">164 </span> 68/push <a href='061read-byte.subx.html#L278'>_test-buffered-file->buffer</a>/imm32 +<span id="L164" class="LineNr">164 </span> 68/push $_test-buffered-file->buffer/imm32 <span id="L165" class="LineNr">165 </span> <span class="subxS2Comment"># . . call</span> <span id="L166" class="LineNr">166 </span> e8/call <a href='055stream.subx.html#L17'>clear-stream</a>/disp32 <span id="L167" class="LineNr">167 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L168" class="LineNr">168 </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> 4/imm32 <span class="subxComment"># add to esp</span> <span id="L169" class="LineNr">169 </span> <span class="subxComment"># fill up the buffer for _test-buffered-file</span> -<span id="L170" class="LineNr">170 </span> <span class="subxS1Comment"># . write(_test-buffered-file->buffer, "abcdef")</span> +<span id="L170" class="LineNr">170 </span> <span class="subxS1Comment"># . write($_test-buffered-file->buffer, "abcdef")</span> <span id="L171" class="LineNr">171 </span> <span class="subxS2Comment"># . . push args</span> <span id="L172" class="LineNr">172 </span> 68/push <span class="Constant">"abcdef"</span>/imm32 -<span id="L173" class="LineNr">173 </span> 68/push <a href='061read-byte.subx.html#L278'>_test-buffered-file->buffer</a>/imm32 +<span id="L173" class="LineNr">173 </span> 68/push $_test-buffered-file->buffer/imm32 <span id="L174" class="LineNr">174 </span> <span class="subxS2Comment"># . . call</span> <span id="L175" class="LineNr">175 </span> e8/call <a href='057write.subx.html#L24'>write</a>/disp32 <span id="L176" class="LineNr">176 </span> <span class="subxS2Comment"># . . discard args</span> @@ -240,14 +240,14 @@ if ('onhashchange' in window) { <span id="L178" class="LineNr">178 </span> <span class="subxComment"># write-byte-buffered(_test-buffered-file, 'g')</span> <span id="L179" class="LineNr">179 </span> <span class="subxS2Comment"># . . push args</span> <span id="L180" class="LineNr">180 </span> 68/push 0x67/imm32 -<span id="L181" class="LineNr">181 </span> 68/push <a href='061read-byte.subx.html#L275'>_test-buffered-file</a>/imm32 +<span id="L181" class="LineNr">181 </span> 68/push <a href='061read-byte.subx.html#L274'>_test-buffered-file</a>/imm32 <span id="L182" class="LineNr">182 </span> <span class="subxS2Comment"># . . call</span> <span id="L183" class="LineNr">183 </span> e8/call <a href='064write-byte.subx.html#L33'>write-byte-buffered</a>/disp32 <span id="L184" class="LineNr">184 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L185" class="LineNr">185 </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="L186" class="LineNr">186 </span> <span class="subxComment"># flush(_test-buffered-file)</span> <span id="L187" class="LineNr">187 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L188" class="LineNr">188 </span> 68/push <a href='061read-byte.subx.html#L275'>_test-buffered-file</a>/imm32 +<span id="L188" class="LineNr">188 </span> 68/push <a href='061read-byte.subx.html#L274'>_test-buffered-file</a>/imm32 <span id="L189" class="LineNr">189 </span> <span class="subxS2Comment"># . . call</span> <span id="L190" class="LineNr">190 </span> e8/call <a href='064write-byte.subx.html#L81'>flush</a>/disp32 <span id="L191" class="LineNr">191 </span> <span class="subxS2Comment"># . . discard args</span> @@ -258,7 +258,7 @@ if ('onhashchange' in window) { <span id="L196" class="LineNr">196 </span> 68/push <span class="Constant">"abcdefg"</span>/imm32 <span id="L197" class="LineNr">197 </span> 68/push <a href='057write.subx.html#L148'>_test-stream</a>/imm32 <span id="L198" class="LineNr">198 </span> <span class="subxS2Comment"># . . call</span> -<span id="L199" class="LineNr">199 </span> e8/call <a href='058stream-equal.subx.html#L193'>check-stream-equal</a>/disp32 +<span id="L199" class="LineNr">199 </span> e8/call <a href='058stream-equal.subx.html#L194'>check-stream-equal</a>/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="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/imm32 <span class="subxComment"># add to esp</span> <span id="L202" class="LineNr">202 </span> <span class="subxS1Comment"># . end</span> @@ -267,7 +267,7 @@ if ('onhashchange' in window) { <span id="L205" class="LineNr">205 </span><span class="subxH1Comment"># - variant without buffering</span> <span id="L206" class="LineNr">206 </span> <span id="L207" class="LineNr">207 </span><span class="subxComment"># Write lower byte of 'n' to 'f'.</span> -<span id="L208" class="LineNr">208 </span><span class="subxFunction">append-byte</span>: <span class="subxComment"># f : (address stream), n : int</span> +<span id="L208" class="LineNr">208 </span><span class="subxFunction">append-byte</span>: <span class="subxComment"># f : (address stream byte), n : int</span> <span id="L209" class="LineNr">209 </span> <span class="subxS1Comment"># . prologue</span> <span id="L210" class="LineNr">210 </span> 55/push-ebp <span id="L211" class="LineNr">211 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> @@ -304,7 +304,7 @@ if ('onhashchange' in window) { <span id="L242" class="LineNr">242 </span> 68/push <span class="Constant">"append-byte: out of space\n"</span>/imm32 <span id="L243" class="LineNr">243 </span> 68/push 2/imm32/stderr <span id="L244" class="LineNr">244 </span> <span class="subxS2Comment"># . . call</span> -<span id="L245" class="LineNr">245 </span> e8/call <a href='050_write.subx.html#L14'>_write</a>/disp32 +<span id="L245" class="LineNr">245 </span> e8/call <a href='050_write.subx.html#L34'>_write</a>/disp32 <span id="L246" class="LineNr">246 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L247" class="LineNr">247 </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="L248" class="LineNr">248 </span> <span class="subxS1Comment"># . syscall(exit, 1)</span> @@ -337,7 +337,7 @@ if ('onhashchange' in window) { <span id="L275" class="LineNr">275 </span> 68/push <span class="Constant">"A"</span>/imm32 <span id="L276" class="LineNr">276 </span> 68/push <a href='057write.subx.html#L148'>_test-stream</a>/imm32 <span id="L277" class="LineNr">277 </span> <span class="subxS2Comment"># . . call</span> -<span id="L278" class="LineNr">278 </span> e8/call <a href='058stream-equal.subx.html#L193'>check-stream-equal</a>/disp32 +<span id="L278" class="LineNr">278 </span> e8/call <a href='058stream-equal.subx.html#L194'>check-stream-equal</a>/disp32 <span id="L279" class="LineNr">279 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L280" class="LineNr">280 </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> 0xc/imm32 <span class="subxComment"># add to esp</span> <span id="L281" class="LineNr">281 </span> <span class="subxS1Comment"># . end</span> @@ -345,7 +345,7 @@ if ('onhashchange' in window) { <span id="L283" class="LineNr">283 </span> <span id="L284" class="LineNr">284 </span>== data <span id="L285" class="LineNr">285 </span> -<span id="L286" class="LineNr">286 </span><span class="subxMinorFunction">_test-output-stream</span>: +<span id="L286" class="LineNr">286 </span><span class="subxMinorFunction">_test-output-stream</span>: <span class="subxComment"># (ref stream byte)</span> <span id="L287" class="LineNr">287 </span> <span class="subxComment"># current write index</span> <span id="L288" class="LineNr">288 </span> 0/imm32 <span id="L289" class="LineNr">289 </span> <span class="subxComment"># current read index</span> @@ -387,10 +387,10 @@ if ('onhashchange' in window) { <span id="L325" class="LineNr">325 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <span id="L326" class="LineNr">326 </span> <span id="L327" class="LineNr">327 </span><span class="subxComment"># a test buffered file for _test-output-stream</span> -<span id="L328" class="LineNr">328 </span><span class="subxMinorFunction">_test-output-buffered-file</span>: -<span id="L329" class="LineNr">329 </span> <span class="subxComment"># file descriptor or (address stream)</span> +<span id="L328" class="LineNr">328 </span><span class="subxMinorFunction">_test-output-buffered-file</span>: <span class="subxComment"># (ref buffered-file)</span> +<span id="L329" class="LineNr">329 </span> <span class="subxComment"># file descriptor or (address stream byte)</span> <span id="L330" class="LineNr">330 </span> <a href='064write-byte.subx.html#L286'>_test-output-stream</a>/imm32 -<span id="L331" class="LineNr">331 </span><span class="subxMinorFunction">_test-output-buffered-file->buffer</span>: +<span id="L331" class="LineNr">331 </span><span class="Constant">$_test-output-buffered-file->buffer</span>: <span id="L332" class="LineNr">332 </span> <span class="subxComment"># current write index</span> <span id="L333" class="LineNr">333 </span> 0/imm32 <span id="L334" class="LineNr">334 </span> <span class="subxComment"># current read index</span> @@ -400,7 +400,7 @@ if ('onhashchange' in window) { <span id="L338" class="LineNr">338 </span> <span class="subxComment"># data</span> <span id="L339" class="LineNr">339 </span> 00 00 00 00 00 00 <span class="subxComment"># 6 bytes</span> <span id="L340" class="LineNr">340 </span> -<span id="L341" class="LineNr">341 </span><span class="subxMinorFunction">_test-error-stream</span>: +<span id="L341" class="LineNr">341 </span><span class="subxMinorFunction">_test-error-stream</span>: <span class="subxComment"># (ref stream byte)</span> <span id="L342" class="LineNr">342 </span> <span class="subxComment"># current write index</span> <span id="L343" class="LineNr">343 </span> 0/imm32 <span id="L344" class="LineNr">344 </span> <span class="subxComment"># current read index</span> @@ -418,10 +418,10 @@ if ('onhashchange' in window) { <span id="L356" class="LineNr">356 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <span id="L357" class="LineNr">357 </span> <span id="L358" class="LineNr">358 </span><span class="subxComment"># a test buffered file for _test-error-stream</span> -<span id="L359" class="LineNr">359 </span><span class="subxMinorFunction">_test-error-buffered-file</span>: -<span id="L360" class="LineNr">360 </span> <span class="subxComment"># file descriptor or (address stream)</span> +<span id="L359" class="LineNr">359 </span><span class="subxMinorFunction">_test-error-buffered-file</span>: <span class="subxComment"># (ref buffered-file)</span> +<span id="L360" class="LineNr">360 </span> <span class="subxComment"># file descriptor or (address stream byte)</span> <span id="L361" class="LineNr">361 </span> <a href='064write-byte.subx.html#L341'>_test-error-stream</a>/imm32 -<span id="L362" class="LineNr">362 </span><span class="subxMinorFunction">_test-error-buffered-file->buffer</span>: +<span id="L362" class="LineNr">362 </span><span class="Constant">$_test-error-buffered-file->buffer</span>: <span id="L363" class="LineNr">363 </span> <span class="subxComment"># current write index</span> <span id="L364" class="LineNr">364 </span> 0/imm32 <span id="L365" class="LineNr">365 </span> <span class="subxComment"># current read index</span> |