diff options
Diffstat (limited to 'html/subx/058read.subx.html')
-rw-r--r-- | html/subx/058read.subx.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/html/subx/058read.subx.html b/html/subx/058read.subx.html index 2c54adce..27b20a0e 100644 --- a/html/subx/058read.subx.html +++ b/html/subx/058read.subx.html @@ -114,7 +114,7 @@ if ('onhashchange' in window) { <span id="L52" class="LineNr"> 52 </span> b8/copy-to-EAX 1/imm32/exit <span id="L53" class="LineNr"> 53 </span> cd/syscall 0x80/imm8 <span id="L54" class="LineNr"> 54 </span> -<span id="L55" class="LineNr"> 55 </span><span class="subxFunction"><a href='058read.subx.html#L55'>read</a></span>: <span class="subxComment"># f : fd or (address stream), s : (address stream) -> num-bytes-read/EAX</span> +<span id="L55" class="LineNr"> 55 </span><span class="subxFunction">read</span>: <span class="subxComment"># f : fd or (address stream), s : (address stream) -> num-bytes-read/EAX</span> <span id="L56" class="LineNr"> 56 </span> <span class="subxS1Comment"># . prolog</span> <span id="L57" class="LineNr"> 57 </span> 55/push-EBP <span id="L58" class="LineNr"> 58 </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> @@ -180,7 +180,7 @@ if ('onhashchange' in window) { <span id="L118" class="LineNr">118 </span><span class="subxComment"># Unclear how I'd use it, though. Callers seem to need the check anyway.</span> <span id="L119" class="LineNr">119 </span><span class="subxComment"># Maybe a better helper would be 'empty-stream?'</span> <span id="L120" class="LineNr">120 </span> -<span id="L121" class="LineNr">121 </span><span class="subxMinorFunction"><a href='058read.subx.html#L121'>_read</a></span>: <span class="subxComment"># fd : int, s : (address stream) -> num-bytes-read/EAX</span> +<span id="L121" class="LineNr">121 </span><span class="subxMinorFunction">_read</span>: <span class="subxComment"># fd : int, s : (address stream) -> num-bytes-read/EAX</span> <span id="L122" class="LineNr">122 </span> <span class="subxS1Comment"># . prolog</span> <span id="L123" class="LineNr">123 </span> 55/push-EBP <span id="L124" class="LineNr">124 </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> @@ -241,7 +241,7 @@ if ('onhashchange' in window) { <span id="L179" class="LineNr">179 </span> <span id="L180" class="LineNr">180 </span><span class="subxH1Comment"># - tests</span> <span id="L181" class="LineNr">181 </span> -<span id="L182" class="LineNr">182 </span><span class="subxTest"><a href='058read.subx.html#L182'>test-read-single</a></span>: +<span id="L182" class="LineNr">182 </span><span class="subxTest">test-read-single</span>: <span id="L183" class="LineNr">183 </span> <span class="subxH1Comment"># - write a single character into _test-stream, then read from its buffered-file</span> <span id="L184" class="LineNr">184 </span> <span class="subxComment"># clear-stream(_test-stream)</span> <span id="L185" class="LineNr">185 </span> <span class="subxS2Comment"># . . push args</span> @@ -296,7 +296,7 @@ if ('onhashchange' in window) { <span id="L234" class="LineNr">234 </span> <span class="subxComment"># end</span> <span id="L235" class="LineNr">235 </span> c3/return <span id="L236" class="LineNr">236 </span> -<span id="L237" class="LineNr">237 </span><span class="subxTest"><a href='058read.subx.html#L237'>test-read-is-stateful</a></span>: +<span id="L237" class="LineNr">237 </span><span class="subxTest">test-read-is-stateful</span>: <span id="L238" class="LineNr">238 </span> <span class="subxH1Comment"># - make two consecutive reads, check that their results are appended</span> <span id="L239" class="LineNr">239 </span> <span class="subxComment"># clear-stream(_test-stream)</span> <span id="L240" class="LineNr">240 </span> <span class="subxS2Comment"># . . push args</span> @@ -358,7 +358,7 @@ if ('onhashchange' in window) { <span id="L296" class="LineNr">296 </span> <span class="subxComment"># end</span> <span id="L297" class="LineNr">297 </span> c3/return <span id="L298" class="LineNr">298 </span> -<span id="L299" class="LineNr">299 </span><span class="subxTest"><a href='058read.subx.html#L299'>test-read-returns-0-on-end-of-file</a></span>: +<span id="L299" class="LineNr">299 </span><span class="subxTest">test-read-returns-0-on-end-of-file</span>: <span id="L300" class="LineNr">300 </span> <span class="subxH1Comment"># - read after hitting end-of-file, check that result is 0</span> <span id="L301" class="LineNr">301 </span> <span class="subxComment"># setup</span> <span id="L302" class="LineNr">302 </span> <span class="subxS1Comment"># . clear-stream(_test-stream)</span> @@ -415,7 +415,7 @@ if ('onhashchange' in window) { <span id="L353" class="LineNr">353 </span> <span id="L354" class="LineNr">354 </span>== data <span id="L355" class="LineNr">355 </span> -<span id="L356" class="LineNr">356 </span><span class="subxMinorFunction"><a href='058read.subx.html#L356'>_test-stream-buffer</a></span>: +<span id="L356" class="LineNr">356 </span><span class="subxMinorFunction">_test-stream-buffer</span>: <span id="L357" class="LineNr">357 </span> <span class="subxComment"># current write index</span> <span id="L358" class="LineNr">358 </span> 00 00 00 00 <span id="L359" class="LineNr">359 </span> <span class="subxComment"># current read index</span> |