about summary refs log tree commit diff stats
path: root/html/subx/059read-byte.subx.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-12-04 12:16:17 -0800
committerKartik Agaram <vc@akkartik.com>2018-12-04 12:16:17 -0800
commita94b60b5cc217f08e4fd6c949e6af590c55a176b (patch)
tree6939ccd3c67212a564421876362ab69d1c813c71 /html/subx/059read-byte.subx.html
parent707935d0a83446380abee0c6477328166841793e (diff)
downloadmu-a94b60b5cc217f08e4fd6c949e6af590c55a176b.tar.gz
4840
New helper: printing a string to a buffered file.
Diffstat (limited to 'html/subx/059read-byte.subx.html')
-rw-r--r--html/subx/059read-byte.subx.html29
1 files changed, 15 insertions, 14 deletions
diff --git a/html/subx/059read-byte.subx.html b/html/subx/059read-byte.subx.html
index fd8af4bf..07822a01 100644
--- a/html/subx/059read-byte.subx.html
+++ b/html/subx/059read-byte.subx.html
@@ -147,7 +147,7 @@ if ('onhashchange' in window) {
 <span id="L81" class="LineNr"> 81 </span>    <span class="subxComment"># read byte from stream</span>
 <span id="L82" class="LineNr"> 82 </span>    <span class="subxComment"># AL = f-&gt;data[f-&gt;read]</span>
 <span id="L83" class="LineNr"> 83 </span>    31/xor                          3/mod/direct    0/rm32/EAX   <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"># clear EAX</span>
-<span id="L84" class="LineNr"> 84 </span>    8a/copy-byte                    1/mod/*+disp8   4/rm32/sib    6/base/ESI  1/index/ECX  <span class="CommentedCode"> . </span>          0/r32/AL    0x10/disp8     <span class="CommentedCode"> . </span>                <span class="subxComment"># copy *(ESI+ECX+16) to AL</span>
+<span id="L84" class="LineNr"> 84 </span>    8a/copy-byte                    1/mod/*+disp8   4/rm32/sib    6/base/ESI  1/index/ECX  <span class="CommentedCode"> . </span>          0/r32/AL    0x10/disp8     <span class="CommentedCode"> . </span>                <span class="subxComment"># copy byte at *(ESI+ECX+16) to AL</span>
 <span id="L85" class="LineNr"> 85 </span>    <span class="subxComment"># ++f-&gt;read</span>
 <span id="L86" class="LineNr"> 86 </span>    ff          0/subop/increment   1/mod/*+disp8   6/rm32/ESI   <span class="CommentedCode"> . </span>         <span class="CommentedCode"> . </span>           <span class="CommentedCode"> . </span>         <span class="CommentedCode"> . </span>          8/disp8        <span class="CommentedCode"> . </span>                <span class="subxComment"># increment *(ESI+8)</span>
 <span id="L87" class="LineNr"> 87 </span><span class="Constant">$read-byte:end</span>:
@@ -300,19 +300,20 @@ if ('onhashchange' in window) {
 <span id="L234" class="LineNr">234 </span>
 <span id="L235" class="LineNr">235 </span>== data
 <span id="L236" class="LineNr">236 </span>
-<span id="L237" class="LineNr">237 </span><span class="subxMinorFunction">_test-buffered-file</span>:
-<span id="L238" class="LineNr">238 </span>    <span class="subxComment"># file descriptor or (address stream)</span>
-<span id="L239" class="LineNr">239 </span>    _test-stream/imm32
-<span id="L240" class="LineNr">240 </span>    <span class="subxComment"># current write index</span>
-<span id="L241" class="LineNr">241 </span>    00 00 00 00
-<span id="L242" class="LineNr">242 </span>    <span class="subxComment"># current read index</span>
-<span id="L243" class="LineNr">243 </span>    00 00 00 00
-<span id="L244" class="LineNr">244 </span>    <span class="subxComment"># length (8)</span>
-<span id="L245" class="LineNr">245 </span>    08 00 00 00
-<span id="L246" class="LineNr">246 </span>    <span class="subxComment"># data</span>
-<span id="L247" class="LineNr">247 </span>    00 00 00 00 00 00 00 00  <span class="subxComment"># 8 bytes</span>
-<span id="L248" class="LineNr">248 </span>
-<span id="L249" class="LineNr">249 </span><span class="subxS2Comment"># . . vim&#0058;nowrap:textwidth=0</span>
+<span id="L237" class="LineNr">237 </span><span class="subxComment"># a test buffered file for _test-stream</span>
+<span id="L238" class="LineNr">238 </span><span class="subxMinorFunction">_test-buffered-file</span>:
+<span id="L239" class="LineNr">239 </span>    <span class="subxComment"># file descriptor or (address stream)</span>
+<span id="L240" class="LineNr">240 </span>    _test-stream/imm32
+<span id="L241" class="LineNr">241 </span>    <span class="subxComment"># current write index</span>
+<span id="L242" class="LineNr">242 </span>    00 00 00 00
+<span id="L243" class="LineNr">243 </span>    <span class="subxComment"># current read index</span>
+<span id="L244" class="LineNr">244 </span>    00 00 00 00
+<span id="L245" class="LineNr">245 </span>    <span class="subxComment"># length (6)</span>
+<span id="L246" class="LineNr">246 </span>    06 00 00 00
+<span id="L247" class="LineNr">247 </span>    <span class="subxComment"># data</span>
+<span id="L248" class="LineNr">248 </span>    00 00 00 00 00 00  <span class="subxComment"># 6 bytes</span>
+<span id="L249" class="LineNr">249 </span>
+<span id="L250" class="LineNr">250 </span><span class="subxS2Comment"># . . vim&#0058;nowrap:textwidth=0</span>
 </pre>
 </body>
 </html>